alle00
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
thank you boys for the time and talking to me! really appreciated!
51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
yeah it seems that way unfortunately, the dream would be BYOSVL (schema validation lib), but that looks like an impossible solution atm
51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
it's a very rare edge case
51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
unfortunately the type-safe APIs span across multiple apps and are usually separated by a network layer
51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
hmm I'll look into the
.expression
first51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
My preferred solution is allowing the user to bring his own validation lib 😅
51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
I'll check it out, I'm also looking into standard schema and the .types property, looks really interesting as well
51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
it's kind of similar to prisma generate, if that's the easier way to think abouti t
51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
you could do user.* which subscribes you to 5 different events
51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
plus there are wildcard combinations
51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
it just requires a typegen step that writes it and overrides it, it's not unsafe because the other things i do under the hood guarantee the types
51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
I mean, it's almost identical in terms of approach to react-router v7 type-safety features, I don't think inference would work in these scenarios but i'll have to check 🤔
51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
I send the json schema as well and then I parse the data on the other side with the matching schema to make sure it works
51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
it's not "just types"
51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
so you're guaranteed you'll get the data you expect
51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
there is, the tool we created handles the encoding/decoding of data
51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
Ideally I'd like the user to not have to install additional deps in apps A/B/C to make it work
51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
event-driven arch. is usually used to link multiple org applications together through an event-bus with events, I'm trying to make them typesafe so instead of being able to subscribe to "event.anything" it narrows down the type to actual events, and in order to make the payloads typesafe I use schemas to describe what the payload can look like. so if you have app A, then apps B & C can send the payload to the event as described in app A without having access to that apps types (in certain cases where users don't use monorepos etc)
51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
where I would hopefully use arktype to get a TS only types and write them there, so the user himself doesn't have to install arktype/anything else in the consumer apps
51 replies
Aarktype
•Created by alle00 on 4/23/2025 in #questions
question about arktype => TS
ahh okay, so what I'm trying to do is create a 0 dep flow
51 replies