Skip to content

Commit

Permalink
Merge pull request #4 from LOKE/feature/register-metrics-type
Browse files Browse the repository at this point in the history
pick registerMetrics() fn from Registry type for compatibility
  • Loading branch information
althoff0 authored Aug 30, 2024
2 parents 6fce3b0 + e31c78e commit 741b92e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ export function cacheKey(
};
}

export function registerMetrics(registry: Registry): void {
export function registerMetrics(
registry: Pick<Registry, "registerMetric">
): void {
registry.registerMetric(queryCount);
registry.registerMetric(hitCount);
registry.registerMetric(queryDuration);
Expand Down

0 comments on commit 741b92e

Please sign in to comment.