isLaminaError
isLaminaError<
C>(e,code?):e is LaminaError<C>
Whether e is a LaminaError, with code when given.
Type Parameters
Section titled “Type Parameters”C extends ErrorCode
Parameters
Section titled “Parameters”unknown
anything caught.
C
the code to match.
Returns
Section titled “Returns”e is LaminaError<C>
true for a LaminaError (with that code).