Skip to content

Commit 38c94d0

Browse files
chore: update interface to type as we're not implementing it
1 parent 0ff2b34 commit 38c94d0

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

packages/sds/src/message_channel/mem_local_history.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import _ from "lodash";
22

3-
import { ChannelId, ContentMessage, isContentMessage } from "./message.js";
3+
import { type ChannelId, ContentMessage, isContentMessage } from "./message.js";
44
import { PersistentStorage } from "./persistent_storage.js";
55

66
export const DEFAULT_MAX_LENGTH = 10_000;
@@ -48,10 +48,10 @@ export interface ILocalHistory {
4848
): number;
4949
}
5050

51-
export interface MemLocalHistoryOptions {
51+
export type MemLocalHistoryOptions = {
5252
storage?: ChannelId | PersistentStorage;
5353
maxSize?: number;
54-
}
54+
};
5555

5656
export class MemLocalHistory implements ILocalHistory {
5757
private items: ContentMessage[] = [];

packages/sds/src/message_channel/message_channel.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ import {
2323
} from "./message.js";
2424
import { RepairConfig, RepairManager } from "./repair/repair.js";
2525

26+
export type { ILocalHistory };
27+
2628
export const DEFAULT_BLOOM_FILTER_OPTIONS = {
2729
capacity: 10000,
2830
errorRate: 0.001

packages/sds/src/message_channel/repair/repair.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Logger } from "@waku/utils";
22

3-
import type { ILocalHistory } from "../mem_local_history.js";
43
import type { HistoryEntry, MessageId } from "../message.js";
54
import { Message } from "../message.js";
5+
import type { ILocalHistory } from "../message_channel.js";
66

77
import { IncomingRepairBuffer, OutgoingRepairBuffer } from "./buffers.js";
88
import {

0 commit comments

Comments
 (0)