Guillaume Chau

Results 406 comments of Guillaume Chau

Here is what I've been doing (slightly modified to leave out the vue-meteor-tracker parts): https://gist.github.com/Akryum/1a26bf4cc82b9a5cd63035aea1a374e4 It provides very simple and fully typed methods (including multiple arguments) + runtime checking

I have updated my gist to use `z.tuple` which allows tuples `[1,2] as const` in JS too: https://gist.github.com/Akryum/1a26bf4cc82b9a5cd63035aea1a374e4 It has: - Simple signature: `(name, args, handler) => call` - Allows...

```js const Tasks = createRouter('tasks') .addMethod('insert', z.object({ description: z.string() }), insertTask) .addMethod('update', z.object({ newDescripiton: z.string(), taskId: z.string() }), updateTask) .addMethod('remove', z.object({ taskId: z.string() }), removeTask) .addMethod('toggleDone', z.object({ taskId: z.string() }),...

Updated the gist with subscriptions that I just implemented in my app: https://gist.github.com/Akryum/1a26bf4cc82b9a5cd63035aea1a374e4 Automatic inference :heart_eyes_cat: ![image](https://user-images.githubusercontent.com/2798204/190670377-7573c9a8-8cdf-4214-a1df-9d800ecf2f43.png) ![image](https://user-images.githubusercontent.com/2798204/190670393-8d4483d4-12bd-4605-9037-c648ad026f9e.png) ![image](https://user-images.githubusercontent.com/2798204/190672345-59c69ad5-1e7b-4e55-a390-34b7bc95a182.png)

My thoughts on type merging is that is saves a little bit of code but I find usability to be much worse than implicit typing with zod and exporting functions:...

> Having support for Zod, Yup, and Simpl is a must, and also have the choice of just using it as a callback. I don't really see how you can...

Right now I do not see a use case for them in my app. IMO it adds to the API surface without providing much more than native `try { await...

Implemented with the `gridItems` and `itemSecondarySize` props

I'm not sure I have to do anything on vue-apollo side to support this.

Is there anything we need to support this? Are the current observers enough?