UNPKG

postcss-calc

Version:
21 lines (20 loc) 484 B
export type TokenType = 'number' | 'dimension' | 'ident' | 'punct' | 'eof'; export type Token = { type: TokenType; value: string; /** * Present on `dimension` tokens; `%` for percentages. */ unit?: string; pos: number; /** * Whitespace immediately before — drives the §10.1 `+`/`-` rule. */ ws: boolean; }; /** * @param {string} input * @return {Token[]} */ declare function tokenize(input: string): Token[]; export { tokenize };