Smadger
Smadger
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Smadger on 7/2/2023 in #questions
Get types of return value from trpc api call
Thanks so much
10 replies
TTCTheo's Typesafe Cult
Created by Smadger on 7/2/2023 in #questions
Get types of return value from trpc api call
Oh I'm an idiot haha
10 replies
TTCTheo's Typesafe Cult
Created by Smadger on 7/2/2023 in #questions
Get types of return value from trpc api call
Is there 🤦‍♂️
10 replies
TTCTheo's Typesafe Cult
Created by Smadger on 7/2/2023 in #questions
Get types of return value from trpc api call
10 replies
TTCTheo's Typesafe Cult
Created by Smadger on 5/11/2023 in #questions
TRPC good practice, single schema, multiple similar updates.
I would like to server side have one schema which says the ID is required and any of the update fields are optional. However I'm using Mantine forms on the frontend and have previously shared a schema. Therefore having the email as optional isn't valid as an email is always needed.
4 replies
TTCTheo's Typesafe Cult
Created by Smadger on 2/6/2023 in #questions
Zod array of dates
Cheers
9 replies
TTCTheo's Typesafe Cult
Created by Smadger on 2/6/2023 in #questions
Zod array of dates
For some reason this doesn't flag when date is an array of two nulls.
9 replies