Comparing version 0.0.3 to 0.0.4
@@ -28,2 +28,3 @@ export interface Request { | ||
} | ||
declare type ErrorKey = "BadRequestError" | "UnauthorizedError" | "ForbiddenError" | "NotFoundError" | "MethodNotAllowedError" | "InternalServerError" | "BadGatewayError" | "PublishError"; | ||
export interface Response { | ||
@@ -43,4 +44,5 @@ status: number; | ||
export interface Error { | ||
errorKey: "InternalServerError" | "NotFoundError" | "PublishError" | "BadRequestError" | "UnauthorizedError"; | ||
errorKey: ErrorKey; | ||
cause?: string; | ||
} | ||
export {}; |
@@ -28,2 +28,3 @@ export interface Request { | ||
} | ||
declare type ErrorKey = "BadRequestError" | "UnauthorizedError" | "ForbiddenError" | "NotFoundError" | "MethodNotAllowedError" | "InternalServerError" | "BadGatewayError" | "PublishError"; | ||
export interface Response { | ||
@@ -43,4 +44,5 @@ status: number; | ||
export interface Error { | ||
errorKey: "InternalServerError" | "NotFoundError" | "PublishError" | "BadRequestError" | "UnauthorizedError"; | ||
errorKey: ErrorKey; | ||
cause?: string; | ||
} | ||
export {}; |
{ | ||
"name": "enonic-fp", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Functional programming helpers for Enonic XP", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
22808
578