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.
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 LaminaPdfError<C>
true for a LaminaPdfError (with that code).