Closed fabrv closed 2 years ago
Removed | undefined in optional parameters because the undefined type is inherent of optional parameters.
| undefined
Hey @fabrv, this is actually intentional and is used to support the --exactOptionalPropertyTypes flag in TS.
--exactOptionalPropertyTypes
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-4.html#exact-optional-property-types---exactoptionalpropertytypes
Removed
| undefined
in optional parameters because the undefined type is inherent of optional parameters.