Files
Signal-Desktop/ts/types/Util.ts
Chris Svenningsen d3d3c41f94 Convert <Avatar /> component to Storybook
Co-authored-by: Chris Svenningsen <chris@carbonfive.com>
Co-authored-by: Sidney Keese <me@sidke.com>
2020-08-13 13:53:45 -07:00

14 lines
283 B
TypeScript

export type RenderTextCallbackType = (options: {
text: string;
key: number;
}) => JSX.Element | string;
export type ReplacementValuesType = {
[key: string]: string;
};
export type LocalizerType = (
key: string,
values?: Array<string> | ReplacementValuesType
) => string;