UNPKG

386 BTypeScriptView Raw
1/**
2 * String format method, used for scenarios where at runtime you
3 * need to evaluate a formatted string given a tokenized string. This
4 * usually only is needed in localization scenarios.
5
6 * @example
7 * ```tsx
8 * "I love {0} every {1}".format("CXP")
9 * ```
10 * will result in a Debug Exception.
11 *
12 * @public
13 */
14export declare function format(s: string, ...values: any[]): string;