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.
9 lines • 300 B
TypeScript
/**
* @public
* Creates a function that can be called many times but will run at most once.
*
* @remarks
* See {@link fpOnce}.
*/
export declare function fpOnce<TArgs extends unknown[], TRet>(initialize: (...args: TArgs) => TRet): (...args: TArgs) => TRet;
//# sourceMappingURL=fp-once.d.ts.map