util.d.ts 767 B

12345678910
  1. import type { IPinyinAllOptions, IPinyinOptions, IPinyinStyle, IPinyinMode } from "./declare";
  2. import { ENUM_PINYIN_STYLE, ENUM_PINYIN_MODE } from "./constant";
  3. export declare function hasKey(obj: any, key: string): boolean;
  4. export declare function convertPinyinStyle(style?: IPinyinStyle): ENUM_PINYIN_STYLE;
  5. export declare function convertPinyinMode(mode?: IPinyinMode): ENUM_PINYIN_MODE;
  6. export declare function convertUserOptions(options?: IPinyinOptions): IPinyinAllOptions;
  7. export declare function combo2array(a1: string[], a2: string[]): string[];
  8. export declare function combo(arr: string[][]): string[];
  9. export declare function compact2array(a1: string[] | string[][], a2: string[]): string[][];
  10. export declare function compact(arr: string[][]): string[][];