-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.d.ts
More file actions
42 lines (37 loc) · 827 Bytes
/
index.d.ts
File metadata and controls
42 lines (37 loc) · 827 Bytes
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
interface ThinkViewCtx {
/**
* assign one value
* @memberOf ViewExtend
*/
assign(name: string, value: any): void;
/**
* multiple value assign
* @memberOf ViewExtend
*/
assign(value: object): void;
/**
* get assigned value by name
* @memberOf ViewExtend
*/
assign(name: string): any;
/**
* get all assigned value
* @memberOf ViewExtend
*/
assign(): any;
render(file?: string, config?: object | string): Promise<string>;
display(file?: string, config?: object | string): Promise<any>;
/**
* display base on current controller and action
*
* @memberOf ViewExtend
*/
display(): Promise<any>;
}
declare module 'thinkjs' {
interface Controller extends ThinkViewCtx {}
}
declare namespace ThinkView {
const controller: ThinkViewCtx
}
export = ThinkView;