Skip to content

Wrap

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

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:107

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:110

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:111

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