Skip to content

Commit

Permalink
fix(meter): only use a single declration. Meter always returns a func…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
ysa23 committed Feb 29, 2024
1 parent 64dd870 commit 95ffc0b
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) | (<T>(func: () => Promise<T>) => () => Promise<T>);
meter: <T>(func: () => T) => () => T;

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

0 comments on commit 95ffc0b

Please sign in to comment.