Skip to content

Commit

Permalink
Merge pull request #235 from zh-lx/fix-alias-type
Browse files Browse the repository at this point in the history
fix: 修复 alias 导致的 type 报错
  • Loading branch information
zh-lx authored May 7, 2024
2 parents c753ef0 + fc7166e commit 8d3c8b0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/core/pinyin/handle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Surnames from '@/data/surname';
import DICT1 from '@/data/dict1';
import { getCustomMultpileDict } from '@/core/custom';
import type { SingleWordResult, PinyinMode } from '../../common/type';
import { acTree, TokenizationAlgorithm } from '@/common/segmentit';
import { acTree, TokenizationAlgorithm } from '../../common/segmentit';
import {
DoubleUnicodePrefixReg,
DoubleUnicodeSuffixReg,
Expand Down
2 changes: 1 addition & 1 deletion lib/core/pinyin/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TokenizationAlgorithm } from '@/common/segmentit';
import { TokenizationAlgorithm } from '../../common/segmentit';
import type { SingleWordResult } from '../../common/type';
import { getPinyin } from './handle';
import {
Expand Down
2 changes: 1 addition & 1 deletion types/core/pinyin/handle.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SingleWordResult, PinyinMode } from '../../common/type';
import { TokenizationAlgorithm } from '@/common/segmentit';
import { TokenizationAlgorithm } from '../../common/segmentit';
/**
* @description: 获取单个字符的拼音
* @param {string} word
Expand Down
2 changes: 1 addition & 1 deletion types/core/pinyin/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TokenizationAlgorithm } from '@/common/segmentit';
import { TokenizationAlgorithm } from '../../common/segmentit';
interface BasicOptions {
/**
* @description 返回的拼音音调类型
Expand Down

0 comments on commit 8d3c8b0

Please sign in to comment.