forked from reidchan/egg-shell-decorators
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
70 lines (58 loc) · 1.64 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
interface EggShell {
(app: object, options: object): void
}
declare class StatusError {
constructor(message: string, status?: number);
message: string;
status: number;
}
interface SwaggerOpt {
open?: boolean,
title?: string;
version?: string;
host: string;
port: string|number;
schemes?: string[];
paths: object;
tokenOpt?: object;
}
interface Decorator {
(target: any, key: string, descriptor: PropertyDescriptor): void
}
interface SingleDecorator {
(value: any): Decorator
}
interface CoupleDecorator {
(value1: any, value2?: any): Decorator
}
export const EggShell: EggShell
export const StatusError: StatusError
export const Get: SingleDecorator
export const Post: SingleDecorator
export const Put: SingleDecorator
export const Delete: SingleDecorator
export const Patch: SingleDecorator
export const Options: SingleDecorator
export const Head: SingleDecorator
export const Before: SingleDecorator
export const After: SingleDecorator
export const Message: SingleDecorator
export const IgnoreJwt: Decorator
export const Tags: SingleDecorator
export const Summary: SingleDecorator
export const Description: SingleDecorator
export const Parameters: Function
export const Responses: Function
export const Produces: SingleDecorator
export const Consumes: SingleDecorator
export const Hidden: Decorator
export const TokenType: SingleDecorator
export const Render: Decorator
export const IgnoreJwtAll: Function
export const BeforeAll: Function
export const AfterAll: Function
export const Prefix: Function
export const TagsAll: Function
export const HiddenAll: Function
export const TokenTypeAll: Function
export const RenderController: Function