-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
41 lines (39 loc) · 1014 Bytes
/
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
import * as thinkjs from 'thinkjs';
declare global {
interface ThinkReqeust extends thinkjs.Request {}
interface ThinkResponse extends thinkjs.Response {}
interface ThinkContext extends thinkjs.Context {
new(): ThinkContext;
}
interface ThinkController extends thinkjs.Controller {
new(ctx: ThinkContext): ThinkController
}
interface ThinkLogic extends thinkjs.Logic {
new(ctx: ThinkContext): ThinkLogic
}
interface ThinkService extends thinkjs.Service {
new(...arg: any[]): ThinkService
}
interface ThinkApplication extends thinkjs.Application {
modules: string[]
controllers: any[]
logics: any[]
models: any[]
services: any[]
routers: any
validators: any
server: any
}
interface Think extends thinkjs.Think {
app: ThinkApplication
Controller: ThinkController
Logic: ThinkLogic
Service: ThinkService
}
const think: Think;
}
declare class Application {
constructor(arg: Object)
run(): void
}
export = Application;