Alpha
Type guard which, given an Error, checks whether it has a problemDetails field conform to the ProblemDetails type.
problemDetails
the error being checked.
whether the error has problem details attached.
try { // ...} catch (e) { if (hasProblemDetails(e)) { // e.problemDetails can safely be accessed. }} Copy
try { // ...} catch (e) { if (hasProblemDetails(e)) { // e.problemDetails can safely be accessed. }}
0.0.1
Type guard which, given an Error, checks whether it has a
problemDetails
field conform to the ProblemDetails type.