Skip to content

⬅️ Back to Table of Contents

📄 getValueOfLiteralType.test.ts

📊 Analysis Summary

Metric Count
📦 Imports 1
📊 Variables & Constants 4

📚 Table of Contents

🛠️ File Location:

📂 packages/eslint-plugin/tests/util/getValueOfLiteralType.test.ts

📦 Imports

Name Source
getValueOfLiteralType ../../src/util/getValueOfLiteralType

Variables & Constants

Name Type Kind Value Exported
stringLiteralType ts.LiteralType const `{
value: 'hello' satisfies string,
} as ts.LiteralType`
numberLiteralType ts.LiteralType const `{
value: 42 satisfies number,
} as ts.LiteralType`
pseudoBigIntLiteralType ts.LiteralType const `{
value: {
base10Value: '12345678901234567890',
negative: false,
} satisfies ts.PseudoBigInt,
} as ts.LiteralType`
negativePseudoBigIntLiteralType ts.LiteralType const `{
value: {
base10Value: '98765432109876543210',
negative: true,
} satisfies ts.PseudoBigInt,
} as ts.LiteralType`