ratchetdesigns / ts-bindgen

Generates wasm-bindgen rust code for typescript declarations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

abrgr opened this issue · comments

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;