Skip to content

Commit

Permalink
fix(meter): fix declaration to support async wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
ysa23 committed Feb 29, 2024
1 parent 30c9f04 commit c322b00
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>(func: () => T) => (T | (() => T));

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

0 comments on commit c322b00

Please sign in to comment.