rostero
rostero
Explore posts from servers
Aarktype
Created by rostero on 4/18/2025 in #questions
How to ensure comma delimited set of numbers or fallback to undefined?
I'm trying to parse in some query string parameters, like "2,3,5" that I want parsed to [2, 3, 5]. I want to fail if any any number doesn't parse to an integer. When it fails I want to return undefined. Note that this will be part of a larger type:
{
param1: "",
param2: "2,3,5",
}
{
param1: "",
param2: "2,3,5",
}
If param2 fails and fallback to undefined, I want the whole object to still parse and return { param1: "", param2: undefined }
20 replies
TtRPC
Created by rostero on 5/19/2023 in #❓-help
Stack for expo?
Can someone recommend a stack for an expo project? I'm considering trpc + fastify + fly.io, but have zero experience with any of those technologies. I'm set on using trpc, though. I'll need websockets.
2 replies