📄 getValueOfLiteralType.ts¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🔧 Functions | 3 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/eslint-plugin/src/util/getValueOfLiteralType.ts
Functions¶
valueIsPseudoBigInt(value: number | string | ts.PseudoBigInt): value is ts.PseudoBigInt¶
Code
- Parameters:
value: number | string | ts.PseudoBigInt- Return Type:
value is ts.PseudoBigInt
pseudoBigIntToBigInt(value: ts.PseudoBigInt): bigint¶
Code
- Parameters:
value: ts.PseudoBigInt- Return Type:
bigint - Calls:
BigInt
getValueOfLiteralType(type: ts.LiteralType): bigint | number | string¶
Code
- Parameters:
type: ts.LiteralType- Return Type:
bigint | number | string - Calls:
valueIsPseudoBigIntpseudoBigIntToBigInt