fast-printf
Version:
Fast and spec-compliant printf implementation for Node.js and browser.
9 lines (8 loc) • 389 B
TypeScript
import type { PlaceholderToken } from './types';
type FormatUnboundExpression = (subject: string, token: PlaceholderToken, boundValues: any[]) => string;
type Configuration = {
formatUnboundExpression: FormatUnboundExpression;
};
type Printf = (subject: string, ...boundValues: any[]) => string;
export declare const createPrintf: (configuration?: Configuration) => Printf;
export {};