Asfamilybank
Asfamilybank
Aarktype
Created by Asfamilybank on 12/16/2024 in #questions
Why are the partial operator `?` and explicit `undefined` incompatible?
I think this plan is pretty good.
17 replies
Aarktype
Created by Asfamilybank on 12/16/2024 in #questions
Why are the partial operator `?` and explicit `undefined` incompatible?
I don't want to change the existing ts configuration because that would require me to refactor the entire project's code.
17 replies
Aarktype
Created by Asfamilybank on 12/16/2024 in #questions
Why are the partial operator `?` and explicit `undefined` incompatible?
I try it:
import { configure } from 'arktype/config'

configure({
exactOptionalPropertyTypes: false
})
import { configure } from 'arktype/config'

configure({
exactOptionalPropertyTypes: false
})
or
// tsconfig.json
{
"compilerOptions": {
"exactOptionalPropertyTypes": false
}
}
// tsconfig.json
{
"compilerOptions": {
"exactOptionalPropertyTypes": false
}
}
None of them take effect
17 replies
Aarktype
Created by Asfamilybank on 12/16/2024 in #questions
Why are the partial operator `?` and explicit `undefined` incompatible?
How to set the exactOptionalPropertyTypes in global?
17 replies
Aarktype
Created by Asfamilybank on 12/16/2024 in #questions
Why are the partial operator `?` and explicit `undefined` incompatible?
So ArkType will read and use the configuration from tsconfig.json? Including when packing.
17 replies