12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- declare namespace oneTime {
- interface Options {
-
- throw?: boolean;
- }
- }
- declare const oneTime: {
-
- <ArgumentsType extends unknown[], ReturnType>(
- fn: (...arguments: ArgumentsType) => ReturnType,
- options?: oneTime.Options
- ): (...arguments: ArgumentsType) => ReturnType;
-
- callCount(fn: (...arguments: any[]) => unknown): number;
-
- default: typeof oneTime;
- };
- export = oneTime;
|