UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

8 lines 512 B
/** * @public * Runs the `callback` within the `wrapperFunctions`. This is useful for "positional" attributes, like debug labels, lifecycle block scopes etc. * @remarks * See {@link fpRunWithin}. */ export declare function fpRunWithin<TCallback extends (...args: unknown[]) => unknown>(wrapperFunctions: readonly ((callback: () => ReturnType<TCallback>) => ReturnType<TCallback>)[], callback: TCallback): (...args: Parameters<TCallback>) => ReturnType<TCallback>; //# sourceMappingURL=fp-run-within.d.ts.map