ciscoheat
ciscoheat
Explore posts from servers
DTDrizzle Team
Created by ciscoheat on 2/8/2025 in #help
Is it possible to seed nested referenced entities?
I see that all tables are automatically seeded and references, even those not mentioned in the refine callback.
2 replies
Aarktype
Created by ciscoheat on 2/2/2025 in #questions
Validate Record values with morphs
I'm gonna put Arktype to good use in an upcoming large project
9 replies
Aarktype
Created by ciscoheat on 2/2/2025 in #questions
Validate Record values with morphs
Again, it's just amazing how flexible and convenient you've made this
9 replies
Aarktype
Created by ciscoheat on 2/2/2025 in #questions
Validate Record values with morphs
Ah, that's nice, I knew it was possible, just didn't know the syntax. 🙂
9 replies
Aarktype
Created by ciscoheat on 2/1/2025 in #questions
Testing a type in pipe
Ok, looks very nice!
8 replies
Aarktype
Created by ciscoheat on 2/1/2025 in #questions
Testing a type in pipe
But can it be improved with morphs?
8 replies
Aarktype
Created by ciscoheat on 2/1/2025 in #questions
Testing a type in pipe
Here's the simple solution:
const nullUrl = type('string').pipe((s) => {
try {
return new URL(s);
} catch {
return null;
}
});
const nullUrl = type('string').pipe((s) => {
try {
return new URL(s);
} catch {
return null;
}
});
8 replies
Aarktype
Created by francis on 11/14/2024 in #questions
Is there a way to set a default value that is not valid?
Gotta take some rest now, nice chatting
166 replies
Aarktype
Created by francis on 11/14/2024 in #questions
Is there a way to set a default value that is not valid?
I'm stumped
166 replies
Aarktype
Created by francis on 11/14/2024 in #questions
Is there a way to set a default value that is not valid?
Subclassing in typescript compiles to something messy?
166 replies
Aarktype
Created by francis on 11/14/2024 in #questions
Is there a way to set a default value that is not valid?
And arrays are "objects"
166 replies
Aarktype
Created by francis on 11/14/2024 in #questions
Is there a way to set a default value that is not valid?
Maybe because the prototype of freeze is on Object
166 replies
Aarktype
Created by francis on 11/14/2024 in #questions
Is there a way to set a default value that is not valid?
Yes, I didn't know that
166 replies
Aarktype
Created by francis on 11/14/2024 in #questions
Is there a way to set a default value that is not valid?
I'm sure you'll figure something out. 🙂
166 replies
Aarktype
Created by francis on 11/14/2024 in #questions
Is there a way to set a default value that is not valid?
If you need the extra features of the subclass
166 replies
Aarktype
Created by francis on 11/14/2024 in #questions
Is there a way to set a default value that is not valid?
Maybe you can use that internally, and call Array.from when you're about to return the errors?
166 replies
Aarktype
Created by francis on 11/14/2024 in #questions
Is there a way to set a default value that is not valid?
Yes
166 replies
Aarktype
Created by francis on 11/14/2024 in #questions
Is there a way to set a default value that is not valid?
Ok, yeah, I guess it's a bit of a problem if the error path doesn't behave just like an array
166 replies
Aarktype
Created by francis on 11/14/2024 in #questions
Is there a way to set a default value that is not valid?
What was the problem with the (real) array in the first place?
166 replies
Aarktype
Created by francis on 11/14/2024 in #questions
Is there a way to set a default value that is not valid?
No description
166 replies