pinyin.js 409 B

123456789101112
  1. import PinyinBase, { getPinyinInstance } from "./PinyinBase";
  2. import { segment } from "./segment";
  3. export class Pinyin extends PinyinBase {
  4. segment(hans, segmentType) {
  5. return segment(hans, segmentType);
  6. }
  7. }
  8. export const pinyin = getPinyinInstance(new Pinyin());
  9. export default pinyin;
  10. export const compare = pinyin.compare;
  11. export { compact } from "./util";
  12. //# sourceMappingURL=pinyin.js.map