UNPKG

cjk-readings

Version:

Web service that generates readings for chinese characters.

26 lines (23 loc) 560 B
declare module 'pinyin/data/dict-zi' { export type Dict = string[] const dict: Dict export default dict } declare module 'pinyin/data/phrases-dict' { export type PhrasesDict = { [phrase: string]: string[][] } const dict: PhrasesDict export default dict } declare module 'pinyin/lib/pinyin' { export interface Options { segment: boolean heteronym: boolean } export default class Pinyin { static toFixed(pinyin: string, style: any): string constructor(dict: any) convert(hans: string, options: {}): string[][] } }