UNPKG

fast-printf

Version:

Fast and spec-compliant printf implementation for Node.js and browser.

17 lines (16 loc) 385 B
export type Flag = '-' | '-+' | '+' | '0'; type LiteralToken = { type: 'literal'; literal: string; }; export type PlaceholderToken = { conversion: string; flag: Flag | null; placeholder: string; position: number; precision: number | null; type: 'placeholder'; width: number | null; }; export type Token = LiteralToken | PlaceholderToken; export {};