Files
starface-outlook-sync-addin/node_modules/thingies/lib/once.d.ts
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

6 lines
377 B
TypeScript

/**
* 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;