Skip to content
Lamina PDF
Unreleased

These docs describe changes that aren’t released yet. For the newest release, see the released docs.

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).