mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Convert signal.js and preload.js to Typescript
This commit is contained in:
@@ -23,12 +23,14 @@ export type RenderTextCallbackType = (options: {
|
||||
key: number;
|
||||
}) => JSX.Element | string;
|
||||
|
||||
export type ReplacementValuesType = {
|
||||
[key: string]: string | number | undefined;
|
||||
};
|
||||
export type ReplacementValuesType =
|
||||
| Array<string>
|
||||
| {
|
||||
[key: string]: string | number | undefined;
|
||||
};
|
||||
|
||||
export type LocalizerType = {
|
||||
(key: string, values?: Array<string> | ReplacementValuesType): string;
|
||||
(key: string, values?: ReplacementValuesType): string;
|
||||
getLocale(): string;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user