Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
malteish committed Sep 4, 2024
1 parent 4b98fc4 commit 374c484
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/delivery-service/src/persistence/getDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Account from './account';
import { getIdEnsName } from './getIdEnsName';
import Messages from './messages';
import { syncAcknowledge } from './messages/syncAcknowledge';
import type { MetricsMap } from './metrics';
import type { MetricsObject } from './metrics';
import Metrics from './metrics';
import Notification from './notification';
import Otp from './otp';
Expand Down Expand Up @@ -161,7 +161,7 @@ export interface IDatabase extends IAccountDatabase {
ensName: string,
channelType: NotificationChannelType,
) => Promise<void>;
getMetrics: () => Promise<MetricsMap>;
getMetrics: () => Promise<MetricsObject>;
countMessage: (messageSizeBytes: number) => Promise<void>;
countNotification: () => Promise<void>;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/delivery-service/src/persistence/metrics/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getMetrics } from './getMetrics';
import type { IntervalMetric, MetricsMap } from './metricTypes';
import type { IntervalMetric, MetricsMap, MetricsObject } from './metricTypes';
import { countMessage, countNotification } from './setMetrics';
import { stringifyMetrics } from './stringifyMetrics';

Expand All @@ -10,4 +10,4 @@ export default {
stringifyMetrics,
};

export type { IntervalMetric, MetricsMap };
export type { IntervalMetric, MetricsMap, MetricsObject };

0 comments on commit 374c484

Please sign in to comment.