Luca Schultz
Aarktype
•Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
Thanks, I'll check it out
65 replies
Aarktype
•Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
Hey guys, I appreciate the quick turnaround, but I'm a bit confused. Do you need me to open a bug report on the Arktype repository? @ssalbdivad you mentioned that:
if anything it should be opened as a bug on the TS repository anyways.is that still the case? Also is there a good workaround I can use?
65 replies
Aarktype
•Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
NoInfer
from instantiateType
(locally in the .d.ts
) and that seems to work 👀65 replies
Aarktype
•Created by Luca Schultz on 1/24/2025 in #questions
How to build generic functions that use ArkType schemas?
Type<T>
replaced by Type<unknown>
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?
Sorry if my question sounded entitled. I genuinely wasn't aware whether what I was doing should work, so this wasn't meant to be a bug report.
BUT since you asked: https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAbzgFQJ5gKYBo43RuAXzgDMoIQ4AiAQygGs9MqAoFkgVwDsBjGYCFzhg6AZwwAeZAD44ACh6CSwAOYAuRCzhxRPABYYQNDWkxTpWLXABuNADYcMG7vS4QA7lxaEAlJu2KXKLwUBiiHHbwALxwgcoqAHS6BkYKSqoJtg4YPmzawCTyoeGRcMBBMDS8GBCFTBgJGFDkUKJ+CFbaMHrk7nBcGH0Aos3QcgAGAJJcWcAAJjb2jhoAJAjFETAJIGGiNCoYhOO52oR5cKEwHFBCG5HeQA
Thank you guys for the quick replies ✌️
65 replies
Aarktype
•Created by Luca Schultz on 8/16/2024 in #questions
Is it possible to extract a "subtype"?
Ah, I upgraded to
"2.0.0-beta.5"
and now it works! Thank you!11 replies
Aarktype
•Created by Luca Schultz on 8/16/2024 in #questions
Is it possible to extract a "subtype"?
11 replies
Aarktype
•Created by Luca Schultz on 8/16/2024 in #questions
Is it possible to extract a "subtype"?
Ah, I probably should have added that I don't control the scope. It is generated using https://github.com/astahmer/typed-openapi
11 replies