Skip to content

isLaminaError

isLaminaError<C>(e, code?): e is LaminaError<C>

Whether e is a LaminaError, with code when given.

C extends ErrorCode

unknown

anything caught.

C

the code to match.

e is LaminaError<C>

true for a LaminaError (with that code).