Closed esamattis closed 2 years ago
Also one could argue that "dotted" queries are uglier with this
client["todo.add"]({task: 'string'})
Personally I don't care. I'd just stay with camel casing.
Also one could argue that "dotted" queries are uglier with this
client["todo.add"]({task: 'string'})
Personally I don't care. I'd just stay with camel casing.
See https://github.com/trpc/v10-playground/issues/6#issuecomment-1018998345
Eg. instead of
client.query(queries.greeting, {hello: 'string'})
why not allow
client.greeting({hello: 'string'})
I will have a play with this!
Closing in favor of #26
Since you are using JS Proxies why not go all in and implement the rpc calls directly as a property access?
Eg. instead of
why not allow
Although with this it could be trickier for the go-to-definition implementation.