MCPcopy Create free account
hub / github.com/thinkjs/thinkjs / ThinkConfig

Interface ThinkConfig

index.d.ts:36–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 8

loadAllMethod · 0.80
_getMasterInstanceMethod · 0.80
_getWorkerInstanceMethod · 0.80
createServerMethod · 0.80
think.jsFile · 0.80
configFunction · 0.80
isJsonpFunction · 0.80
jsonpFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…