unfortunately for a case like this, I tested doing the check that would be necessary to avoid `${string}${string}` an it's a huge performance hit
unfortunately for a case like this, I tested doing the check that would be necessary to avoid `${string}${string}` an it's a huge performance hit
obviously the inference is going to be less useful for clarity with this number of branches but the capture groups seem like they work?
obviously the inference is going to be less useful for clarity with this number of branches but the capture groups seem like they work?
Making illegal states representable since 2007
Making illegal states representable since 2007
try it in-browser 🛝🔗👇
try it in-browser 🛝🔗👇
Out of the box, @arktype.io errors are...
1️⃣clear and concise
2️⃣readable for developers and end users
3️⃣deeply customizable to your needs
Out of the box, @arktype.io errors are...
1️⃣clear and concise
2️⃣readable for developers and end users
3️⃣deeply customizable to your needs
It makes the intent of the regex clearer and gives you narrowed string types for stricter checks passing specific string values around.
It makes the intent of the regex clearer and gives you narrowed string types for stricter checks passing specific string values around.
save yourself a ton of headaches by adding a type error for this in your main API
save yourself a ton of headaches by adding a type error for this in your main API
Learn why in 30 seconds.
Learn why in 30 seconds.
With @arktype.io, you finally can.
All the power of the type system, fully introspectable from native JS- the possibilities are endless🔥
With @arktype.io, you finally can.
All the power of the type system, fully introspectable from native JS- the possibilities are endless🔥
☠️tsserver lag in editor
🧩complex types
🧪type testing or benchmarking
I consult and can fix your problems!
@arktype.io relies on me getting this work- referrals and retweets help a ton 🙏
☠️tsserver lag in editor
🧩complex types
🧪type testing or benchmarking
I consult and can fix your problems!
@arktype.io relies on me getting this work- referrals and retweets help a ton 🙏