UNPKG

@anireact/d

Version:

Dedent templates, autoindent interpolations, and more.

16 lines 623 B
import { d } from './dedent.mjs'; /** * Getter for the `raw` property. */ export declare const getRaw: (s: TemplateStringsArray) => readonly string[]; /** * Template arguments tokenizer. * * @param s Literals array; must be non-empty. * @param q Quasis array; must be one item shorted than {@linkcode s}. * @returns Interleaved sequence of literal and quasi tokens, with literals * properly dedented and trimmed, and quasis with inferred autoindent * strings. */ export declare const scan: <t extends unknown>(s: readonly string[], q: t[]) => d.Token<t>[]; //# sourceMappingURL=private.d.mts.map