frolic
Explore posts from serversAarktype
•Created by frolic on 8/21/2024 in #questions
codecs
import { type type }
is funny to me277 replies
Aarktype
•Created by frolic on 8/21/2024 in #questions
codecs
not a bad diff :) feels more readable after those
type.*
changes: https://github.com/holic/typed-http/commit/44a5c9ecebece61b72e238e53d26bf99707a2c8a277 replies
Aarktype
•Created by frolic on 8/21/2024 in #questions
codecs
(kind of funny JS joke too if you think about it)
277 replies
Aarktype
•Created by frolic on 8/21/2024 in #questions
codecs
not sure what
this
you're referring to277 replies
Aarktype
•Created by frolic on 8/21/2024 in #questions
codecs
currently bumping to latest arktype RC
277 replies
Aarktype
•Created by frolic on 8/21/2024 in #questions
codecs
anything new I should be aware of for the codec use case?
277 replies
Aarktype
•Created by frolic on 8/21/2024 in #questions
codecs
but maybe thinking about it wrong
277 replies
Aarktype
•Created by frolic on 8/21/2024 in #questions
codecs
iirc I kept wanting to access outer scope, not just the immediate value or whatever
277 replies
Aarktype
•Created by frolic on 8/21/2024 in #questions
codecs
unclear if strong types carry through though
277 replies
Aarktype
•Created by frolic on 8/21/2024 in #questions
codecs
so would let me do that transformation with pure arktype generics I think
277 replies
Aarktype
•Created by frolic on 8/21/2024 in #questions
codecs
yeah there's a transformation step I'm doing to turn individual codecs with encode/decode functions into an object for all encoders and all decoders
277 replies
Aarktype
•Created by frolic on 8/21/2024 in #questions
codecs
curious if you had a specific use case in mind
277 replies
Aarktype
•Created by frolic on 8/21/2024 in #questions
codecs
I tried fiddling with generics for quite a while and couldn't figure out a way to help simplify things
277 replies
Aarktype
•Created by frolic on 8/21/2024 in #questions
codecs
great, that's basically what I am doing
277 replies
Aarktype
•Created by frolic on 8/21/2024 in #questions
codecs
also could greatly simplify this lib if there was some notion of bidirectional morphs native to arktype, wouldn't need the whole codec thing
277 replies
Aarktype
•Created by frolic on 8/21/2024 in #questions
codecs
circling back, things are looking good with the lib: https://github.com/holic/typed-http/blob/main/src/arktype/http.test.ts
should have some full end to end tests soon
277 replies
Aarktype
•Created by dibbo on 8/27/2024 in #questions
Indexed Access Types
not possible yet: https://github.com/arktypeio/arktype/issues/831
9 replies