jiuyiUniapp/jiuyi/node_modules/js-pinyin/index.d.ts

48 lines
787 B
TypeScript
Raw Normal View History

2024-12-18 15:46:27 +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