Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(types): add explicit
| undefined
to optional fields (#462)
When typescript is used with the option `exactOptionalProperty: true`, this code fails to typecheck if `undefined` is passed in for the response value. This is because `exactOptionalProperty` makes tsc consider `?:..` different from `: ... | undefined` for more strictness.
- Loading branch information