Skip to content
Lamina PDF

isLaminaPdfError

isLaminaPdfError<C>(e, code?): e is LaminaPdfError<C>

Whether e is a LaminaPdfError, with code when given.

C extends ErrorCode

unknown

anything caught.

C

the code to match.

e is LaminaPdfError<C>

true for a LaminaPdfError (with that code).