Skip to content

Commit

Permalink
Merge pull request #42 from ysa23/fix/meter-typescript-declaration
Browse files Browse the repository at this point in the history
Fix: meter typescript declaration
  • Loading branch information
ysa23 authored Feb 29, 2024
2 parents 30c9f04 + 87cb672 commit 53d8880
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"datadog",
"DogStatsD"
],
"version": "1.0.0",
"version": "1.1.0",
"repository": {
"type": "git",
"url": "https://github.com/ysa23/metrics-reporter"
Expand Down
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 53d8880

Please sign in to comment.