UNPKG

react-string-format

Version:

Formats string using string, number, and react components as paramaters

7 lines (6 loc) 327 B
import * as React from "react"; type FormatType = string | number | React.ReactElement; export declare const WhiteSpaceChar = " "; declare function format(text: string, ...params: (string | number)[]): string; declare function format(text: string, ...params: FormatType[]): string | React.ReactElement; export { format };