Closed tomshen closed 2 years ago
isConjureError(null) and isConjureError(undefined) would throw type errors:
isConjureError(null)
isConjureError(undefined)
TypeError: Cannot read property '__proto__' of null
isConjureError
unknown
any
==COMMIT_MSG== Fix isConjureError handling of null/undefined values. ==COMMIT_MSG==
N/A
Release triggered here: https://github.com/palantir/conjure-typescript-runtime/releases/tag/2.8.0
Before this PR
isConjureError(null)
andisConjureError(undefined)
would throw type errors:After this PR
isConjureError
to handleunknown
inputs rather than justany
.==COMMIT_MSG== Fix isConjureError handling of null/undefined values. ==COMMIT_MSG==
Possible downsides?
N/A