TizzySaurus
Aarktype
•Created by TaQuanMinhLong on 4/2/2025 in #questions
Loose string schema
But yeah, it's likely TS just reduces it
20 replies
Aarktype
•Created by TaQuanMinhLong on 4/2/2025 in #questions
Loose string schema
Sorry, I meant
type.or(xxx, yyy, zzz, aaa)
20 replies
Aarktype
•Created by TaQuanMinhLong on 4/2/2025 in #questions
Loose string schema
Have you tried
type.enum("'literal'", "'or'", "'any'", "string")
?20 replies
Aarktype
•Created by TaQuanMinhLong on 4/2/2025 in #questions
Loose string schema
Bold of you to assume I've got access to my PC (I don't) :)
20 replies
Aarktype
•Created by TaQuanMinhLong on 4/2/2025 in #questions
Loose string schema
I don't really understand what a "loose string" is
20 replies
Aarktype
•Created by TaQuanMinhLong on 4/2/2025 in #questions
Loose string schema
Maybe
type("string").as<Thing>()
?20 replies
Aarktype
•Created by Valency on 4/2/2025 in #questions
zod .refine() equivalent? min/max validation
3 replies
Aarktype
•Created by Bo on 3/27/2025 in #questions
How to use reject correctly?
You should remove
message
from your ctx.reject
btw. message
in general shouldn't be used unless absolutely necessary.
Something likewill output an error along the lines of must be a total file size of less than 4MB (was 5.32MB)
19 replies
Aarktype
•Created by Josh on 3/24/2025 in #questions
Trying to index an array type with .get(...path)
Sounds good :)
37 replies
Aarktype
•Created by Josh on 3/24/2025 in #questions
Trying to index an array type with .get(...path)
I actually might take a look this weekend if it's easy enough.
37 replies
Aarktype
•Created by Josh on 3/24/2025 in #questions
Trying to index an array type with .get(...path)
Out of interest, what's the output with
string[] > 1
? Because technically there it is guaranteed to be string. Although I can see it not being worth the cost to implement the logic37 replies
Aarktype
•Created by teddythinh on 3/16/2025 in #questions
How to set a custom message with object type?
Were you able to try it out?
43 replies
Aarktype
•Created by Schmime on 3/1/2025 in #questions
Is there a better way to write this?
Let's go DMs :)
124 replies
Aarktype
•Created by Schmime on 3/1/2025 in #questions
Is there a better way to write this?
Honestly it's just great to help people out
124 replies
Aarktype
•Created by Schmime on 3/1/2025 in #questions
Is there a better way to write this?
All my work here is volunteer-based :)
124 replies
Aarktype
•Created by Schmime on 3/1/2025 in #questions
Is there a better way to write this?
Lmaaooo
124 replies
Aarktype
•Created by Schmime on 3/1/2025 in #questions
Is there a better way to write this?
This should be good :)
124 replies
Aarktype
•Created by Schmime on 3/1/2025 in #questions
Is there a better way to write this?
Hmm I guess maybe not... let me think
124 replies
Aarktype
•Created by Schmime on 3/1/2025 in #questions
Is there a better way to write this?
I think this is what you want
124 replies
Aarktype
•Created by Schmime on 3/1/2025 in #questions
Is there a better way to write this?
I'm just seeing the best way
124 replies