Steve
ZZod
•Created by Steve on 9/12/2024 in #questions
Steve - I was wondering if there is a certain w...
😦 too bad
7 replies
ZZod
•Created by Steve on 9/12/2024 in #questions
Steve - I was wondering if there is a certain w...
The first optimization of this is ofcourse rewriting it to this:
7 replies
ZZod
•Created by Steve on 9/12/2024 in #questions
Steve - I have this unique case where I want to...
sweet
23 replies
ZZod
•Created by Steve on 9/12/2024 in #questions
Steve - I have this unique case where I want to...
You're a genius
23 replies
ZZod
•Created by Steve on 9/12/2024 in #questions
Steve - I have this unique case where I want to...
23 replies
ZZod
•Created by Steve on 9/12/2024 in #questions
Steve - I have this unique case where I want to...
This works brilliantly, thanks @Scott Trinh !
23 replies
ZZod
•Created by Steve on 9/12/2024 in #questions
Steve - I have this unique case where I want to...
I am afraid it would, let me test
23 replies
ZZod
•Created by Steve on 9/12/2024 in #questions
Steve - I have this unique case where I want to...
Would it modify my output type to also include null or not?
23 replies
ZZod
•Created by Steve on 9/12/2024 in #questions
Steve - I have this unique case where I want to...
.catch
would be possible for now.23 replies
ZZod
•Created by Steve on 9/12/2024 in #questions
Steve - I have this unique case where I want to...
I want to filter it out of the input for now
23 replies
ZZod
•Created by Steve on 9/12/2024 in #questions
Steve - I have this unique case where I want to...
I would probably use catch and transform with a filterTransform would be executed on the output, right?
23 replies
ZZod
•Created by Steve on 9/12/2024 in #questions
Steve - I have this unique case where I want to...
23 replies
ZZod
•Created by Steve on 9/12/2024 in #questions
Steve - I have this unique case where I want to...
for context:
23 replies
ZZod
•Created by Steve on 9/12/2024 in #questions
Steve - I have this unique case where I want to...
In the content property, I have an array of a union of objects, also having a
type
property. And for now I just don't want to bother with anything that does not have type
being equal to 'heading'
or 'paragraph'
23 replies
ZZod
•Created by Steve on 9/12/2024 in #questions
Steve - I have this unique case where I want to...
23 replies
ZZod
•Created by Steve on 9/12/2024 in #questions
Steve - I have this unique case where I want to...
Oh yeah, sorry, correct.
23 replies
ZZod
•Created by Steve on 9/12/2024 in #questions
Steve - I have this unique case where I want to...
Currently I am thinking of using
z.preprocess
, would this be the way to go?23 replies
ZZod
•Created by Steve on 9/4/2024 in #questions
Stephan Meijer - What was the deal with union a...
Do I then still have type safety? Type for Document can be found here: https://gitlab.com/toegang-voor-iedereen/specification/types/typescript/-/blob/develop/src/resources.ts?ref_type=heads
4 replies