Skip to content

Commit

Permalink
fix: 修复 alias 导致的 type 报错
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoulixiang committed May 7, 2024
1 parent 7c23875 commit fc7166e
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 fc7166e

Please sign in to comment.