UNPKG

@odict/opencc-js

Version:

The JavaScript version of Open Chinese Convert (OpenCC)

21 lines (19 loc) 354 B
/** * Dictionary group */ type DictGroup = Record<string, string>[]; /** * Locale preset data */ interface LocalePreset { from: Record<string, DictGroup>; to: Record<string, DictGroup>; } /** * Converter options */ interface ConverterOptions { from: string; to: string; } export type { ConverterOptions, DictGroup, LocalePreset };