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

Function callback

packages/core/injector/module-ref.ts:187–200  ·  view source on GitHub ↗
(instances: any[])

Source from the content-addressed store, hash-verified

185 return new Promise<T>(async (resolve, reject) => {
186 try {
187 const callback = async (instances: any[]) => {
188 const properties = await this.injector.resolveProperties(
189 wrapper,
190 moduleRef,
191 undefined,
192 {
193 contextId: contextId ?? STATIC_CONTEXT,
194 inquirer: wrapper,
195 },
196 );
197 const instance = new type(...instances);
198 this.injector.applyProperties(instance, properties);
199 resolve(instance);
200 };
201 await this.injector.resolveConstructorParams<T>(
202 wrapper,
203 moduleRef,

Callers 8

scanFromPrototypeMethod · 0.50
walkNodeMethod · 0.50
runMethod · 0.50
asyncRunMethod · 0.50
_transformMethod · 0.50
streamReqCallMethod · 0.50

Calls 2

resolvePropertiesMethod · 0.80
applyPropertiesMethod · 0.80

Tested by

no test coverage detected