You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.