From 3467aa6cb641ef96af4d6796378644f2117aad47 Mon Sep 17 00:00:00 2001 From: Nelson Martell Date: Sun, 5 Nov 2023 20:29:31 -0500 Subject: [PATCH] feat: export `JsonApiError` class --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index ed78e4a..d143ccb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,6 +14,7 @@ import { ifUserHasRole as IfUserHasRole, } from "./decorators/if-user"; import JsonApiErrors from "./errors/json-api-errors"; +import JsonApiError from "./errors/error"; import jsonApiKoa from "./middlewares/json-api-koa"; import jsonApiExpress from "./middlewares/json-api-express"; import jsonApiWebSocket from "./middlewares/json-api-websocket"; @@ -38,6 +39,7 @@ export { ApplicationInstance, KnexProcessor, JsonApiErrors, + JsonApiError, OperationProcessor, JsonApiSerializer, // Middlewares