tokenize
functionfunction tokenize(
code: string,
theme: BundledTheme
): Promise<TokenizationResult>;Tokenize TypeScript code using Shiki.
Returns themed tokens with character-level offset information.
PARAMETERS
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| code | string | — |
| theme | BundledTheme | — |
RETURNS
Promise<TokenizationResult>