Skip to content

isAepGenerationError

isAepGenerationError(error): error is AepGenerationError<AepGenerationErrorCode, unknown>

Defined in: packages/simply-aep-core/src/generate/errors.ts:56

Structural check for AepGenerationError. Prefer this over instanceof, which fails when a consumer ends up with two copies of this package.

unknown

Anything caught.

error is AepGenerationError<AepGenerationErrorCode, unknown>

Whether error is an AepGenerationError.