You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure why the type definitions aren't working when destructuring the default import but I always get TS2614 error when importing
Module '"../node_modules/@flatten-js/core"' has no exported member 'Line'. Did you mean to use 'import Line from "../node_modules/@flatten-js/core"' instead?ts(2614)
// This file exists to fix destructured imports in Flatten// https://github.com/alexbol99/flatten-js/issues/98importFlattenfrom'@flatten-js/core'const{
Box,
Point,
Ray,
Vector,
Segment,
point,
circle,// @ts-ignore
box,
segment,}=FlattenexporttypeFlattenBox=Flatten.BoxexporttypeFlattenPoint=Flatten.PointexporttypeFlattenRay=Flatten.RayexporttypeFlattenVector=Flatten.VectorexporttypeFlattenSegment=Flatten.SegmentexporttypeFlattenCircle=Flatten.Circle// Missing in their typedefstypebox=(xmin?: number,ymin?: number,xmax?: number,ymax?: number)=>FlattenBoxexport{Box,Point,Ray,Vector,Segment,point,circle,box,segment}
I'm not sure why the type definitions aren't working when destructuring the default import but I always get TS2614 error when importing
Here's a reproduction: https://codesandbox.io/s/dark-sound-r7148?file=/src/index.ts
It's been like this since I started using the package several years ago.
The text was updated successfully, but these errors were encountered: