MCPcopy
hub / github.com/nestjs/nest / createContext

Method createContext

packages/core/guards/guards-consumer.ts:37–47  ·  view source on GitHub ↗
(
    args: unknown[],
    instance: Controller,
    callback: (...args: unknown[]) => unknown,
  )

Source from the content-addressed store, hash-verified

35 }
36
37 public createContext(
38 args: unknown[],
39 instance: Controller,
40 callback: (...args: unknown[]) => unknown,
41 ): ExecutionContextHost {
42 return new ExecutionContextHost(
43 args,
44 instance.constructor as any,
45 callback,
46 );
47 }
48
49 public async pickResult(
50 result: boolean | Promise<boolean> | Observable<boolean>,

Callers 8

tryActivateMethod · 0.95
createMethod · 0.45
createMethod · 0.45
createMethod · 0.45
createMethod · 0.45
createMethod · 0.45
createMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected