@slashid/react
Version:
React SDK for the /id platform
10 lines • 324 B
TypeScript
/**
* This allows interpolating text with tokens.
* Source text needs to have the tokens in the form of {{TOKEN_NAME}}.
* TODO write tests
* @param text
* @param tokens
* @returns
*/
export declare function interpolate(text: string, tokens: Record<string, string>): string;
//# sourceMappingURL=interpolation.d.ts.map