Skip to content

Commit

Permalink
fix(meter): support arguments to wrapper in declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
ysa23 committed Feb 29, 2024
1 parent 95ffc0b commit 3d2fd7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/space.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export declare class Space {

value(val: number) : void;
increment(val?: number): void;
meter: <T>(func: () => T) => () => T;
meter: <T, Args extends any[]>(func: (...args:Args) => T) => (...args: Args) => T;

space: (nextKey: string, nextTags?: Tags) => Space;
}

0 comments on commit 3d2fd7c

Please sign in to comment.