File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
packages/sds/src/message_channel Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11import _ from "lodash" ;
22
3- import { ChannelId , ContentMessage , isContentMessage } from "./message.js" ;
3+ import { type ChannelId , ContentMessage , isContentMessage } from "./message.js" ;
44import { PersistentStorage } from "./persistent_storage.js" ;
55
66export 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
5656export class MemLocalHistory implements ILocalHistory {
5757 private items : ContentMessage [ ] = [ ] ;
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ import {
2323} from "./message.js" ;
2424import { RepairConfig , RepairManager } from "./repair/repair.js" ;
2525
26+ export type { ILocalHistory } ;
27+
2628export const DEFAULT_BLOOM_FILTER_OPTIONS = {
2729 capacity : 10000 ,
2830 errorRate : 0.001
Original file line number Diff line number Diff line change 11import { Logger } from "@waku/utils" ;
22
3- import type { ILocalHistory } from "../mem_local_history.js" ;
43import type { HistoryEntry , MessageId } from "../message.js" ;
54import { Message } from "../message.js" ;
5+ import type { ILocalHistory } from "../message_channel.js" ;
66
77import { IncomingRepairBuffer , OutgoingRepairBuffer } from "./buffers.js" ;
88import {
You can’t perform that action at this time.
0 commit comments