Andarist
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 ;p65 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?
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:
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
Aarktype
•Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
ye, this might be the problem u have wanted to avoid
65 replies
Aarktype
•Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
u should move its location
65 replies
Aarktype
•Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
i;m not saying u should remove it entirely
65 replies
Aarktype
•Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
and not something that u put in types
65 replies
Aarktype
•Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
this is really meant to be a signature-specific "annotation"
65 replies
Aarktype
•Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
@ArkDavid if this is the same issue as the one im thinking of: u should move that
NoInfer
out of Type
65 replies
Aarktype
•Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
I meant that @Luca Schultz should copy-paste this into one :p
65 replies