forked from moleculerjs/moleculer-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
25 lines (22 loc) · 1.25 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
declare module "moleculer-web" {
import { Errors, ServiceSchema } from "moleculer";
class InvalidRequestBodyError extends Errors.MoleculerError { constructor(body: any, error: any) }
class InvalidResponseTypeError extends Errors.MoleculerError { constructor(dataType: string) }
class UnAuthorizedError extends Errors.MoleculerError { constructor(type: string, data: any) }
class ForbiddenError extends Errors.MoleculerError { constructor(type: string, data: any) }
class BadRequestError extends Errors.MoleculerError { constructor(type: string, data: any) }
class RateLimitExceeded extends Errors.MoleculerClientError { constructor(type: string, data: any) }
interface ApiGatewayErrors {
InvalidRequestBodyError: InvalidRequestBodyError;
InvalidResponseTypeError: InvalidResponseTypeError;
UnAuthorizedError: UnAuthorizedError;
ForbiddenError: ForbiddenError;
BadRequestError: BadRequestError;
RateLimitExceeded: RateLimitExceeded;
ERR_NO_TOKEN: "ERR_NO_TOKEN";
ERR_INVALID_TOKEN: "ERR_INVALID_TOKEN";
ERR_UNABLE_DECODE_PARAM: "ERR_UNABLE_DECODE_PARAM";
}
const ApiGatewayService: ServiceSchema & { Errors: ApiGatewayErrors };
export = ApiGatewayService;
}