12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- 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;
|