(input: string, options?: TokenizeOptions)
| 3799 | }); |
| 3800 | |
| 3801 | function tokenizeWithoutErrors(input: string, options?: TokenizeOptions): TokenizeResult { |
| 3802 | const tokenizeResult = tokenize(input, 'someUrl', getHtmlTagDefinition, options); |
| 3803 | |
| 3804 | if (tokenizeResult.errors.length > 0) { |
| 3805 | const errorString = tokenizeResult.errors.join('\n'); |
| 3806 | throw new Error(`Unexpected parse errors:\n${errorString}`); |
| 3807 | } |
| 3808 | |
| 3809 | return tokenizeResult; |
| 3810 | } |
| 3811 | |
| 3812 | function humanizeParts(tokens: Token[]) { |
| 3813 | return tokens.map((token) => [token.type, ...token.parts]); |
no test coverage detected
searching dependent graphs…