parse-pinyin 1.2.7 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.global.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -54,7 +54,7 @@ declare class UltraOptimizedPinyinJsonQuery {
|
|
|
54
54
|
*/
|
|
55
55
|
toHanzi(pinyin: string): string[];
|
|
56
56
|
}
|
|
57
|
-
declare const toPinyin: (char: string, options?: ToneOptions) => (string | [string, number])[];
|
|
57
|
+
declare const toPinyin: (char: string, options?: ToneOptions) => (string | [string, number])[] | (string | (string | [string, number])[])[];
|
|
58
58
|
declare const toHanzi: (pinyin: string) => string[];
|
|
59
59
|
|
|
60
60
|
export { type ToneOptions, UltraOptimizedPinyinJsonQuery, toHanzi, toPinyin };
|
package/dist/index.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ declare class UltraOptimizedPinyinJsonQuery {
|
|
|
54
54
|
*/
|
|
55
55
|
toHanzi(pinyin: string): string[];
|
|
56
56
|
}
|
|
57
|
-
declare const toPinyin: (char: string, options?: ToneOptions) => (string | [string, number])[];
|
|
57
|
+
declare const toPinyin: (char: string, options?: ToneOptions) => (string | [string, number])[] | (string | (string | [string, number])[])[];
|
|
58
58
|
declare const toHanzi: (pinyin: string) => string[];
|
|
59
59
|
|
|
60
60
|
export { type ToneOptions, UltraOptimizedPinyinJsonQuery, toHanzi, toPinyin };
|