node-ejs-renderer/node_modules/thingies/es6/once.d.ts

6 lines
377 B
TypeScript
Raw Normal View History

2024-06-09 13:55:01 -04:00
/**
* A class method decorator that limits a method to be called only once. All
* subsequent calls will return the result of the first call.
*/
export declare function once<This, Args extends any[], Return>(fn: (this: This, ...args: Args) => Return, context?: ClassMethodDecoratorContext<This, (this: This, ...args: Args) => Return>): (this: This, ...args: Args) => Return;