tshet-uinh-js icon indicating copy to clipboard operation
tshet-uinh-js copied to clipboard

TypeScript gets confused with entry.ts

Open syimyuzya opened this issue 2 years ago • 0 comments

(Present in 0.13.1 & 0.13.2, temporarily reverted in 0.13.3)

0.13.1 和 0.13.2 雖然加入了 default export,但它的 index.d.ts 在 submodule 方面似乎出了很大問題。

於是導致在 TypeScript 項目中:

  • 無法 import { 資料 } from 'qieyun'(似乎所有 submodule 都無法引入)
  • import { query音韻地位 } from 'qieyun' 不會報錯(本來應該是 Qieyun.資料 中的)

0.13.3 暫時把入口從 entry.ts 改回了 index.ts。

syimyuzya avatar May 22 '22 15:05 syimyuzya