Skip to content

Wrap

Defined in: packages/pipeline/src/create-pipeline.ts:98

What Pipeline.wrap returns: wraps a plain function, or decorates a method in the standard and the experimentalDecorators mode. The wrapped function returns a promise.

Wrap<F>(fn): (…args) => Promise<Awaited<ReturnType<F>>>

Defined in: packages/pipeline/src/create-pipeline.ts:99

What Pipeline.wrap returns: wraps a plain function, or decorates a method in the standard and the experimentalDecorators mode. The wrapped function returns a promise.

F extends AnyFunction

F

(…args) => Promise<Awaited<ReturnType<F>>>

Wrap<F>(method, context): F

Defined in: packages/pipeline/src/create-pipeline.ts:102

What Pipeline.wrap returns: wraps a plain function, or decorates a method in the standard and the experimentalDecorators mode. The wrapped function returns a promise.

F extends AnyFunction

F

ClassMethodDecoratorContext

F

Wrap(target, propertyKey, descriptor): PropertyDescriptor

Defined in: packages/pipeline/src/create-pipeline.ts:103

What Pipeline.wrap returns: wraps a plain function, or decorates a method in the standard and the experimentalDecorators mode. The wrapped function returns a promise.

object

string | symbol

PropertyDescriptor

PropertyDescriptor