mailliW
Aarktype
•Created by mailliW on 1/29/2025 in #questions
Is ArkType compatible with the overrides made in `@total-typescript/reset`, or will stuff break?
This library overrides some TypeScript defaults for perhaps what could be considered more sensible defaults (I guess that's subjective). I'm wondering if could possibly break ArkType somehow?
https://www.totaltypescript.com/ts-reset-article
7 replies
Aarktype
•Created by mailliW on 11/9/2024 in #questions
Defining and inferring a generic type defined inside a scope
I'm brand new to this library so I'm sorry if I'm doing something dumb, but I'm not sure how I can define a generic inside a scope. My broken code looks like this:
And I have the following errors:
Property 'infer' does not exist on type 'Generic<[["t", unknown]], { readonly kind: "foo"; readonly payload: "t"; }, {}, { foo: { bar: "biz"; }; request: bindGenericToScope<GenericAst<[["t", unknown]], { readonly kind: "foo"; readonly payload: "t"; }, {}, {}>, bootstrapAliases<...>>; }>'.ts(2339)
11 replies