taraskevizer
Version:
Канвэртацыя акадэмічнага правапісу ў клясычны
13 lines (12 loc) • 422 B
TypeScript
export type Dict<Pattern = RegExp> = readonly (readonly [Pattern, string])[];
export type CallableDict<Pattern = RegExp> = {
(value: string): string;
value: Dict<Pattern>;
};
/**
* Useful if you want to modify the dictionary.
*
* Consider converting it to the type {@link Dict} or {@link CallableDict}
* if you no longer need to modify it.
*/
export type WritableDict<Pattern = RegExp> = [Pattern, string][];