when building code containing "named tuples", like this:
/** Parameters that describe an arrow. */
export type ArrowDescriptor = [
/** start point */
sx: number,
sy: number,
/** control point for start point */
c1x: number,
c1y: number,
/** control point for end point */
c2x: number,
c2y: number,
/** end point */
ex: number,
ey: number,
/** angle of end point */
ae: number,
/** angle of start point */
as: number
]
the error pointed to the line sx: number,.
Expected behavior
tsdx build should build code containing "named tuples".
Suggested solution(s)
I guess there's something wrong in the rollup plugins tsdx is using. Probably upgrading them would fix.
Additional context
Staring from TypeScript 4.0, "named tuples" can be used to annotate parameters in an array.
Current Behavior
tsdx build
failed with below error:when building code containing "named tuples", like this:
the error pointed to the line
sx: number,
.Expected behavior
tsdx build
should build code containing "named tuples".Suggested solution(s)
I guess there's something wrong in the rollup plugins
tsdx
is using. Probably upgrading them would fix.Additional context
Staring from TypeScript 4.0, "named tuples" can be used to annotate parameters in an array.
Your environment