pinyin-pro
Advanced tools
Comparing version 3.19.0 to 3.19.1
{ | ||
"name": "pinyin-pro", | ||
"version": "3.19.0", | ||
"version": "3.19.1", | ||
"description": "准确率和性能最优异的汉字转拼音库。获取中文拼音、韵母、声母、声调、首字母,支持拼音匹配", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -162,3 +162,3 @@ [![pinyin-pro Logo](https://github.com/zh-lx/pinyin-pro/assets/73059627/79ffc02d-d223-40f9-a223-ddd2a9c9534b)](https://github.com/zh-lx/pinyin-pro) | ||
<td rowspan="2">😕 97.433%</td> | ||
<td rowspan="2">🤩 99.744%</td> | ||
<td rowspan="2">🤩 99.795%</td> | ||
</tr> | ||
@@ -165,0 +165,0 @@ <tr> |
@@ -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 @@ /** |
@@ -1,3 +0,3 @@ | ||
type CustomHandleType = 'add' | 'replace'; | ||
type CustomDictType = 'pinyin' | 'multiple' | 'polyphonic'; | ||
declare type CustomHandleType = 'add' | 'replace'; | ||
declare type CustomDictType = 'pinyin' | 'multiple' | 'polyphonic'; | ||
interface CustomPinyinOptions { | ||
@@ -4,0 +4,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
835777
26
14578