| 34 | cookie(name: string, value: null, options?: object): void; |
| 35 | } |
| 36 | interface ThinkConfig { |
| 37 | /** |
| 38 | * get config |
| 39 | */ |
| 40 | config(name: string): any; |
| 41 | /** |
| 42 | * set config |
| 43 | */ |
| 44 | config(name: string, value: string): any; |
| 45 | /** |
| 46 | * get or set config |
| 47 | */ |
| 48 | config(name: string, value?: string, module?: string): any; |
| 49 | |
| 50 | /** |
| 51 | * set config for all modules |
| 52 | */ |
| 53 | config(name: string, value: string, module: true): any; |
| 54 | } |
| 55 | |
| 56 | export interface Context extends Koa.Context, ThinkCookie, ThinkConfig { |
| 57 | request: Request; |
no outgoing calls
no test coverage detected
searching dependent graphs…