mrr.sj.front/node_modules/js-pinyin/index.d.ts

48 lines
834 B
TypeScript
Raw Permalink Normal View History

2026-03-24 11:45:13 +08:00
/**
*
*/
interface PinyinOptions {
/**
*
*
* @default false
*/
checkPolyphone: boolean
/**
*
*
* @default 0
* @description `0` - `1` - `2` -
*/
charCase: 0 | 1 | 2
}
/**
*
*/
declare class Pinyin {
constructor(options?: PinyinOptions)
/**
*
* @param options
*/
setOptions(options?: PinyinOptions): void
/**
*
* @param str
*/
getCamelChars(str: string): string
/**
*
* @param str
*/
getFullChars(str: string): string
}
declare const pinyin: Pinyin
export default pinyin