[英]Why do I get a TS2614 when import-destructure the default export of flatten-js library using ES module syntax but not when const-destructure it?
I wish to improve the developer experience of the flatten-js library by fixing an issue I encountered with it.我希望通过解决我遇到的问题来改善flatten-js库的开发人员体验。
When I do当我做
import { point } from '@flatten-js/core';
I get a TS error that point doesn't exist but if I do我收到一个 TS 错误,指出该点不存在,但如果我这样做
import Flatten from "@flatten-js/core";
const { point } = Flatten;
then point is recognized as a member of the library.然后点被识别为图书馆的成员。 I've documented the issue here .
我在这里记录了这个问题。 Anyone know what might be going on?
有人知道会发生什么吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.