1.3.3 • Published 6 months ago
@types/pinyin4js v1.3.3
Installation
npm install --save @types/pinyin4js
Summary
This package contains type definitions for pinyin4js (https://github.com/superbiger/pinyin4js).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pinyin4js.
index.d.ts
// Type definitions for pinyin4js 1.3
// Project: https://github.com/superbiger/pinyin4js
// Definitions by: hlsky <https://github.com/hlsky1988>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// export = pinyin4js;
export as namespace pinyin4js;
export type WITH_TONE_NUMBER = string;
export type WITHOUT_TONE = string;
export type WITH_TONE_MARK = string;
export type FIRST_LETTER = string;
export type format = WITH_TONE_NUMBER | WITHOUT_TONE | WITH_TONE_MARK | FIRST_LETTER;
/**
* pinyin4js
* @npm https://www.npmjs.com/package/pinyin4js
*/
// declare module "pinyin4js" {}
/** 数字代表声调 */
export const WITH_TONE_NUMBER: WITH_TONE_NUMBER;
/** 不带声调 */
export const WITHOUT_TONE: WITHOUT_TONE;
/** 带声调 */
export const WITH_TONE_MARK: WITH_TONE_MARK;
/** 首字母风格 */
export const FIRST_LETTER: FIRST_LETTER;
export function convertToPinyinString(str: string, separator: string, format: format): string;
/**
* 首字母风格
* '厦门你好大厦厦门' ==> xmnhdsxm
*/
export function getShortPinyin(str: string): string;
/** 转换为简体中文 */
export function convertToSimplifiedChinese(str: string): string;
/** 转换为繁体中文 */
export function convertToTraditionalChinese(str: string): string;
Additional Details
- Last updated: Mon, 15 Nov 2021 03:31:22 GMT
- Dependencies: none
- Global values:
pinyin4js
Credits
These definitions were written by hlsky.