@cripty2001/utils 0.0.235 → 0.0.236
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.
|
@@ -5,11 +5,11 @@ export type { AppserverData };
|
|
|
5
5
|
export { Static, TSchema, Type } from '@sinclair/typebox';
|
|
6
6
|
export { Value } from '@sinclair/typebox/value';
|
|
7
7
|
export type AppserverHandler<I extends AppserverData, O extends AppserverData> = (input: I, auth: string | undefined) => Promise<O> | O;
|
|
8
|
-
declare class AppserverError extends Error {
|
|
8
|
+
declare class AppserverError<P extends AppserverData = AppserverData> extends Error {
|
|
9
9
|
code: string;
|
|
10
|
-
payload:
|
|
10
|
+
payload: P;
|
|
11
11
|
status: number;
|
|
12
|
-
constructor(code: string, message: string, payload?:
|
|
12
|
+
constructor(code: string, message: string, payload?: P, status?: number);
|
|
13
13
|
}
|
|
14
14
|
export declare class AppserverAuthError extends AppserverError {
|
|
15
15
|
constructor(message?: string, code?: string);
|
package/package.json
CHANGED