frolic
Explore posts from serversAarktype
•Created by frolic on 8/21/2024 in #questions
codecs
with morphs, I am thinking of arktype types as sort of input/output functions
for
const t = type(...)
t.allows(input)
tells if you if input is the right shape
t(input)
takes input and turns it into output (or errors)
is there a way to extract a def/type of the input type (pre-morph) vs output type (post-morph)?277 replies
Aarktype
•Created by frolic on 8/20/2024 in #questions
subtypes available on scope in 2.0.0-beta.6
29 replies