pinyin-pro
Advanced tools
Comparing version 3.18.1 to 3.18.2
{ | ||
"name": "pinyin-pro", | ||
"version": "3.18.1", | ||
"version": "3.18.2", | ||
"description": "准确率和性能最优异的汉字转拼音库。获取中文拼音、韵母、声母、声调、首字母,支持拼音匹配", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -0,0 +0,0 @@ [](https://github.com/zh-lx/pinyin-pro) |
@@ -8,3 +8,3 @@ export interface SingleWordResult { | ||
} | ||
export type ToneType = 'symbol' | 'num' | 'none'; | ||
export type PinyinMode = 'normal' | 'surname'; | ||
export declare type ToneType = 'symbol' | 'num' | 'none'; | ||
export declare type PinyinMode = 'normal' | 'surname'; |
@@ -1,2 +0,2 @@ | ||
type ConvertFormat = 'numToSymbol' | 'symbolToNum' | 'toneNone'; | ||
declare type ConvertFormat = 'numToSymbol' | 'symbolToNum' | 'toneNone'; | ||
interface ConvertOptions { | ||
@@ -3,0 +3,0 @@ /** |
@@ -33,3 +33,3 @@ interface HtmlOptions { | ||
*/ | ||
export declare const html: (text: string, options?: HtmlOptions) => string; | ||
export declare const html: (text: string, options?: HtmlOptions | undefined) => string; | ||
export {}; |
@@ -30,3 +30,3 @@ interface MatchOptions { | ||
*/ | ||
export declare const match: (text: string, pinyin: string, options?: MatchOptions) => any; | ||
export declare const match: (text: string, pinyin: string, options?: MatchOptions | undefined) => any; | ||
export {}; |
@@ -8,3 +8,3 @@ import type { SingleWordResult, PinyinMode } from '../../common/type'; | ||
*/ | ||
type GetPinyinWithoutTone = (pinyin: string) => string; | ||
declare type GetPinyinWithoutTone = (pinyin: string) => string; | ||
declare const getPinyinWithoutTone: GetPinyinWithoutTone; | ||
@@ -16,3 +16,3 @@ /** | ||
*/ | ||
type GetMultiplePinyin = (word: string, mode?: PinyinMode) => SingleWordResult[]; | ||
declare type GetMultiplePinyin = (word: string, mode?: PinyinMode) => SingleWordResult[]; | ||
declare const getMultiplePinyin: GetMultiplePinyin; | ||
@@ -24,3 +24,3 @@ /** | ||
*/ | ||
type GetInitialAndFinal = (pinyin: string) => { | ||
declare type GetInitialAndFinal = (pinyin: string) => { | ||
final: string; | ||
@@ -35,3 +35,3 @@ initial: string; | ||
*/ | ||
type GetFinalParts = (pinyin: string) => { | ||
declare type GetFinalParts = (pinyin: string) => { | ||
head: string; | ||
@@ -47,3 +47,3 @@ body: string; | ||
*/ | ||
type GetNumOfTone = (pinyin: string) => string; | ||
declare type GetNumOfTone = (pinyin: string) => string; | ||
declare const getNumOfTone: GetNumOfTone; | ||
@@ -56,3 +56,3 @@ /** | ||
*/ | ||
type GetPinyinWithNum = (pinyin: string, originPinyin: string) => string; | ||
declare type GetPinyinWithNum = (pinyin: string, originPinyin: string) => string; | ||
declare const getPinyinWithNum: GetPinyinWithNum; | ||
@@ -64,4 +64,4 @@ /** | ||
*/ | ||
type GetFirstLetter = (pinyin: string) => string; | ||
declare type GetFirstLetter = (pinyin: string) => string; | ||
declare const getFirstLetter: GetFirstLetter; | ||
export { getPinyinWithoutTone, getInitialAndFinal, getMultiplePinyin, getNumOfTone, getPinyinWithNum, getFirstLetter, getFinalParts, }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
837519
14580