ratchetdesigns/ts-bindgen

ts-bindgen binding generation issue - bad type generated for tuple spread argument

abrgr opened this issue · 0 comments

abrgr commented

Issue generating bindings.

Version: 0.4.0

Expected: generated enum for spread argument is well-typed

Observed: enum is generated with a unit type

Code:

export type Foo = (...args: [string, number] | [number, string]) => void;