Open v-morlock opened 9 months ago
Hi,
When i defined subscriptions as follows,
.subscription("...", |t| { t(move |_, _: ()| { async_stream::stream! { ... } }) })
the generated bindings.ts looks like that:
subscriptions: | { key: "on_document"; input: never; result: DocumentResult };
However, Typescript wants me to pass [] as an argument when starting the subscription using the vanilla client, which fails. When passing undefined, everything works, however typescript resports an error.
Hi,
When i defined subscriptions as follows,
the generated bindings.ts looks like that:
However, Typescript wants me to pass [] as an argument when starting the subscription using the vanilla client, which fails. When passing undefined, everything works, however typescript resports an error.