Challenges with `exactOptionalPropertyTypes: true` in TypeScript Configuration
Did anyone else have issues adding the recommended
I have got about 70+ errors and some of them are from my shadcn components which isn't a bad thing, it just means if I ever override them, I'll need to update them to follow this rule.
On another note, did anyone find a way to autofix/patch there project to adhere to the
exactOptionalPropertyTypes: true? I have got about 70+ errors and some of them are from my shadcn components which isn't a bad thing, it just means if I ever override them, I'll need to update them to follow this rule.
On another note, did anyone find a way to autofix/patch there project to adhere to the
exactOptionalPropertyTypes? This rule enforces you do not use the optional param/property ? i.e.{ someValue?: string }must become{ someValue: string | undefined }so you explicitly have to passundefinedtosomeValue
ON a sidenote: I do like the explicitness of this rule.
