PIat
PIat
Aarktype
Created by PIat on 9/4/2024 in #questions
Converting Zod to Arktype
Ohhhhhh! 😡 Thanks
174 replies
Aarktype
Created by PIat on 9/4/2024 in #questions
Converting Zod to Arktype
you skip the transform logic altogether from "off" and go straight to false at runtime
I fail to understand how the transform logic can be skipped. If a string value ("on" or "off") is passed, then it does have to go though .pipe first, right?
174 replies
Aarktype
Created by PIat on 9/17/2024 in #questions
ParseError: undefined must be a PropertyKey or stringifyNonKey must be passed to options
I'm excited making forms could really be this intuitive
27 replies
Aarktype
Created by PIat on 9/17/2024 in #questions
ParseError: undefined must be a PropertyKey or stringifyNonKey must be passed to options
That's the plan!!!
27 replies
Aarktype
Created by PIat on 9/17/2024 in #questions
ParseError: undefined must be a PropertyKey or stringifyNonKey must be passed to options
Now just to make the constraints + polish out the mapping of different form values, and Conform will be Conquer
27 replies
Aarktype
Created by PIat on 9/17/2024 in #questions
ParseError: undefined must be a PropertyKey or stringifyNonKey must be passed to options
Really, it's magical
27 replies
Aarktype
Created by PIat on 9/17/2024 in #questions
ParseError: undefined must be a PropertyKey or stringifyNonKey must be passed to options
No description
27 replies
Aarktype
Created by PIat on 9/17/2024 in #questions
ParseError: undefined must be a PropertyKey or stringifyNonKey must be passed to options
And it works 🀩
27 replies
Aarktype
Created by PIat on 9/17/2024 in #questions
ParseError: undefined must be a PropertyKey or stringifyNonKey must be passed to options
Yessssss
27 replies
Aarktype
Created by PIat on 9/17/2024 in #questions
ParseError: undefined must be a PropertyKey or stringifyNonKey must be passed to options
POC for default values:
const defaultValue = useMemo(() => {
const res = {}

def.distribute((branch) => {
branch.props.forEach((prop) => {
res[prop.key] = defaultValueExternal[prop.key] ?? prop.default
})
})

return res
}, [])
const defaultValue = useMemo(() => {
const res = {}

def.distribute((branch) => {
branch.props.forEach((prop) => {
res[prop.key] = defaultValueExternal[prop.key] ?? prop.default
})
})

return res
}, [])
27 replies
Aarktype
Created by PIat on 9/17/2024 in #questions
ParseError: undefined must be a PropertyKey or stringifyNonKey must be passed to options
This mapping will make it really straightforward to automatically add the constraints to fields through Conform
27 replies
Aarktype
Created by PIat on 9/17/2024 in #questions
ParseError: undefined must be a PropertyKey or stringifyNonKey must be passed to options
27 replies
Aarktype
Created by PIat on 9/17/2024 in #questions
ParseError: undefined must be a PropertyKey or stringifyNonKey must be passed to options
It was ParseError: undefined must be a PropertyKey or stringifyNonKey must be passed to options
27 replies
Aarktype
Created by PIat on 9/17/2024 in #questions
Dynamic type based on another value
Thank you πŸ™πŸ™πŸ™
8 replies
Aarktype
Created by PIat on 9/17/2024 in #questions
Dynamic type based on another value
Thank you!
8 replies
Aarktype
Created by PIat on 9/17/2024 in #questions
Dynamic type based on another value
Narrowing 🫠
8 replies
Aarktype
Created by PIat on 9/17/2024 in #questions
Dynamic type based on another value
AAAHHHH
8 replies
Aarktype
Created by PIat on 9/14/2024 in #questions
Extracting defaults at runtime
Thank you! I'll try this out!
4 replies
Aarktype
Created by PIat on 9/14/2024 in #questions
Ark attest cannot find module error
You've already showed me so much, thank you πŸ™πŸ™πŸ™
156 replies
Aarktype
Created by PIat on 9/14/2024 in #questions
Ark attest cannot find module error
What are your rates so that I can come back when possible? ☺️
156 replies