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

Interface Think

index.d.ts:478–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476 }
477
478 export interface Think extends Helper.Think, ThinkConfig {
479 app: Application;
480 isCli: boolean;
481 /**
482 * Get thisnk.app.env.
483 */
484 env: string;
485 version: string;
486 messenger: ThinkCluster.Messenger;
487 ROOT_PATH: string;
488 APP_PATH: string;
489 RUNTIME_PATH: string;
490 logger: Logger;
491
492 Controller: TController;
493 Logic: TLogic;
494 Service: Service;
495
496 service(name: string): any;
497 service(name: string, ...args: any[]): any;
498 service(name: string, m: any, ...args: any[]): any;
499 beforeStartServer(fn: Function): Promise<any>;
500 }
501
502 export var think : Think;
503}

Callers 6

serviceFunction · 0.65
serviceFunction · 0.65
controller.jsFile · 0.65
context.jsFile · 0.65
runInMasterMethod · 0.80
runInWorkerMethod · 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…