https://github.com/alanscodelog
https://alanscodelog.github.io/
type Api = {
"tag" : typeof yourFunction
}
then it's possible to type the bridge in such a way as to type args here:
await bridge.send("tag", ...args)
type Api = {
"tag" : typeof yourFunction
}
then it's possible to type the bridge in such a way as to type args here:
await bridge.send("tag", ...args)