source-academy/modules

[CURVE]: Cyclic imports

Cloud7050 opened this issue · 3 comments

The linter is reporting cyclic imports between bundles/curve/curves_webgl.ts and bundles/curve/types.ts.

The latter defines the types DrawMode, ScaleMode, and CurveSpace, which are used in the former, but at the same time, the former builds up to defining Curve and CurveDrawn, which the latter needs. Some refactoring may be in order, to resolve this and better fit each file's purpose.