UNPKG

@gitbook/pinyin-pro

Version:

GitBook's fork of pinyin-pro, a fantastic open-source package for turning Chinese characters to pinyin.

11 lines (10 loc) 349 B
export declare function stringLength(text: string): number; export declare function splitString(text: string): string[]; export declare class FastDictFactory { NumberDICT: string[]; StringDICT: Map<string, string>; constructor(); get(word: string): string; set(word: string, pinyin: string): void; clear(): void; }