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.
Call Signature
Section titled “Call Signature”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.
Type Parameters
Section titled “Type Parameters”F extends AnyFunction
Parameters
Section titled “Parameters”F
Returns
Section titled “Returns”(…args) => Promise<Awaited<ReturnType<F>>>
Call Signature
Section titled “Call Signature”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.
Type Parameters
Section titled “Type Parameters”F extends AnyFunction
Parameters
Section titled “Parameters”method
Section titled “method”F
context
Section titled “context”ClassMethodDecoratorContext
Returns
Section titled “Returns”F
Call Signature
Section titled “Call Signature”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.
Parameters
Section titled “Parameters”target
Section titled “target”object
propertyKey
Section titled “propertyKey”string | symbol
descriptor
Section titled “descriptor”PropertyDescriptor
Returns
Section titled “Returns”PropertyDescriptor