ditto/src/types.ts

14 lines
378 B
TypeScript
Raw Normal View History

import { type Filter } from '@/deps.ts';
/** Custom filter interface that extends Nostr filters with extra options for Ditto. */
interface DittoFilter<K extends number = number> extends Filter<K> {
local?: boolean;
}
/** Additional options to apply to the whole subscription. */
interface GetFiltersOpts {
timeout?: number;
}
export type { DittoFilter, GetFiltersOpts };