DM styles update

This commit is contained in:
2023-08-24 15:25:54 +01:00
parent 0e7aefb036
commit e8e65c71cd
54 changed files with 411 additions and 142 deletions

View File

@ -3,6 +3,7 @@ import { RequestBuilder } from "./request-builder";
import { NoteStore } from "./note-collection";
import { Query } from "./query";
import { NostrEvent, ReqFilter } from "./nostr";
import { ProfileLoaderService } from "./profile-cache";
export * from "./nostr-system";
export { default as EventKind } from "./event-kind";
@ -46,6 +47,7 @@ export interface SystemInterface {
DisconnectRelay(address: string): void;
BroadcastEvent(ev: NostrEvent): void;
WriteOnceToRelay(relay: string, ev: NostrEvent): Promise<void>;
get ProfileLoader(): ProfileLoaderService
}
export interface SystemSnapshot {

View File

@ -1,6 +1,6 @@
import { ExternalStore } from "@snort/shared";
import { SystemSnapshot, SystemInterface } from ".";
import { SystemSnapshot, SystemInterface, ProfileLoaderService } from ".";
import { AuthHandler, ConnectionStateSnapshot, RelaySettings } from "./connection";
import { NostrEvent } from "./nostr";
import { NoteStore } from "./note-collection";
@ -20,6 +20,10 @@ export class SystemWorker extends ExternalStore<SystemSnapshot> implements Syste
throw new Error("SharedWorker is not supported");
}
}
get ProfileLoader(): ProfileLoaderService {
throw new Error("Method not implemented.");
}
HandleAuth?: AuthHandler;