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.
6 lines • 312 B
TypeScript
/**
* @public
* Method decorator. The target will be called only once, subsequent calls will return the first return.
*/
export declare function Once<TInstance extends object, TKey extends keyof TInstance>(target: TInstance, key: TKey, descriptor: PropertyDescriptor): void;
//# sourceMappingURL=once.d.ts.map