(value: string)
| 419 | } |
| 420 | |
| 421 | function toIdentifier(value: string) { |
| 422 | const identifier = value.replace(/[^a-zA-Z0-9]+/g, '').toLowerCase() |
| 423 | |
| 424 | if (!identifier) |
| 425 | throw new Error(`Could not derive token import name from "${value}".`) |
| 426 | if (/^\d/.test(identifier)) return `token${identifier}` |
| 427 | return identifier |
| 428 | } |
| 429 | |
| 430 | function assertTokenlist( |
| 431 | value: unknown, |
no outgoing calls
no test coverage detected