Andarist
Andarist
Aarktype
Created by francis on 3/1/2025 in #questions
New v2.1 arktype matcher: is there a way to match on string literal values?
i'd say it's really niche ;p
57 replies
Aarktype
Created by francis on 3/1/2025 in #questions
New v2.1 arktype matcher: is there a way to match on string literal values?
but it's already a possibility in other scenarios so it's probably fine
57 replies
Aarktype
Created by francis on 3/1/2025 in #questions
New v2.1 arktype matcher: is there a way to match on string literal values?
i guess the problem could be that resolving types within such computed properties could lead to new circularities
57 replies
Aarktype
Created by francis on 3/1/2025 in #questions
New v2.1 arktype matcher: is there a way to match on string literal values?
with a stronger signal that they could be interested in it I could revive that work at some point
57 replies
Aarktype
Created by francis on 3/1/2025 in #questions
New v2.1 arktype matcher: is there a way to match on string literal values?
maybe there is already issue about it somewhere?
57 replies
Aarktype
Created by francis on 3/1/2025 in #questions
New v2.1 arktype matcher: is there a way to match on string literal values?
so I gave up on it, given I'm not sure if they would take that change and the time I'd have to wait for a review etc
57 replies
Aarktype
Created by francis on 3/1/2025 in #questions
New v2.1 arktype matcher: is there a way to match on string literal values?
those computed properties are cached all over the place internally :v and it's hard-ish (without major~ changes to the code) to check them contextually somehow
57 replies
Aarktype
Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
but i guess this is weird because u dont even have a type annotation?
65 replies
Aarktype
Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
no idea how merge is implemented ;p
65 replies
Aarktype
Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
too many tricks applied at once and u got urself an unwanted side effect of that combo ;p
65 replies
Aarktype
Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
(iirc)
65 replies
Aarktype
Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
and that's just a fallout of using NoInfer and trying to also unwrap types from it automatically for readability purposes
65 replies
Aarktype
Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
it's the unresolved deferred conditional type that u introduce there
65 replies
Aarktype
Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
specifically, in here, it doesnt trip over generic parameters per se
65 replies
Aarktype
Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
on one hand TS is somewhat limited in generic contexts, on the other hand - it's sometimes surprisingly capable
65 replies
Aarktype
Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
like, think about it as:
declare function test<T>(a: noinfer T, b: T): T
declare function test<T>(a: noinfer T, b: T): T
65 replies
Aarktype
Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
so it belongs to signatures and thus it has to be used in each signature
65 replies
Aarktype
Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
like i said - this, despite being a type wrapper, is really designed like a signature-level annotation
65 replies
Aarktype
Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
but u shouldnt try to avoid it ;p
65 replies