Files
Signal-Desktop/ts/types/Util.ts
2020-10-12 18:10:07 -04:00

22 lines
456 B
TypeScript

export type BodyRangesType = Array<{
start: number;
length: number;
mentionUuid: string;
replacementText: string;
conversationID?: string;
}>;
export type RenderTextCallbackType = (options: {
text: string;
key: number;
}) => JSX.Element | string;
export type ReplacementValuesType = {
[key: string]: string | undefined;
};
export type LocalizerType = (
key: string,
values?: Array<string | null> | ReplacementValuesType
) => string;