@nitrotool/errors 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +12 -0
- package/dist/index.d.ts +12 -0
- package/package.json +2 -1
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as h3 from 'h3';
|
|
2
|
+
|
|
3
|
+
declare const UnauthenticatedError: (message?: string) => h3.H3Error<unknown>;
|
|
4
|
+
declare const UnauthorizedError: (message?: string) => h3.H3Error<unknown>;
|
|
5
|
+
declare const NotFoundError: (message?: string) => h3.H3Error<unknown>;
|
|
6
|
+
declare const EntityAlreadyExistsError: (message?: string) => h3.H3Error<unknown>;
|
|
7
|
+
declare const ServerError: (message?: string) => h3.H3Error<unknown>;
|
|
8
|
+
declare const ClientError: (message?: string) => h3.H3Error<unknown>;
|
|
9
|
+
declare const UnprocessableEntityError: (message?: string) => h3.H3Error<unknown>;
|
|
10
|
+
declare const BadRequestError: (message?: string) => h3.H3Error<unknown>;
|
|
11
|
+
|
|
12
|
+
export { BadRequestError, ClientError, EntityAlreadyExistsError, NotFoundError, ServerError, UnauthenticatedError, UnauthorizedError, UnprocessableEntityError };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as h3 from 'h3';
|
|
2
|
+
|
|
3
|
+
declare const UnauthenticatedError: (message?: string) => h3.H3Error<unknown>;
|
|
4
|
+
declare const UnauthorizedError: (message?: string) => h3.H3Error<unknown>;
|
|
5
|
+
declare const NotFoundError: (message?: string) => h3.H3Error<unknown>;
|
|
6
|
+
declare const EntityAlreadyExistsError: (message?: string) => h3.H3Error<unknown>;
|
|
7
|
+
declare const ServerError: (message?: string) => h3.H3Error<unknown>;
|
|
8
|
+
declare const ClientError: (message?: string) => h3.H3Error<unknown>;
|
|
9
|
+
declare const UnprocessableEntityError: (message?: string) => h3.H3Error<unknown>;
|
|
10
|
+
declare const BadRequestError: (message?: string) => h3.H3Error<unknown>;
|
|
11
|
+
|
|
12
|
+
export { BadRequestError, ClientError, EntityAlreadyExistsError, NotFoundError, ServerError, UnauthenticatedError, UnauthorizedError, UnprocessableEntityError };
|
package/package.json
CHANGED