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) 302 B
export interface SingleWordResult { origin: string; originPinyin: string; result: string; isZh: boolean; delete?: boolean; } export type ToneType = "symbol" | "num" | "none"; export type PinyinMode = "normal" | "surname"; export type SurnameMode = "all" | "head" | "off";