(value: unknown)
| 16 | throw new TypeError('Value must be a string, a float, or an array of strings and/or floats') |
| 17 | }, |
| 18 | parseValue(value: unknown): string | number | (string | number)[] { |
| 19 | if ( |
| 20 | typeof value === 'string' || |
| 21 | typeof value === 'number' || |
| 22 | (Array.isArray(value) && |
| 23 | value.every(item => typeof item === 'string' || typeof item === 'number')) |
| 24 | ) { |
| 25 | return value |
| 26 | } |
| 27 | throw new TypeError('Value must be a string, a float, or an array of strings and/or floats') |
| 28 | }, |
| 29 | parseLiteral(ast: ValueNode): string | number | (string | number)[] { |
| 30 | if (ast.kind === Kind.STRING) { |
| 31 | return ast.value |
nothing calls this directly
no outgoing calls
no test coverage detected