UNPKG

rx-nostr

Version:

A library based on RxJS, which allows Nostr applications to easily communicate with relays.

9 lines 581 B
import * as Nostr from "nostr-typedef"; export declare function ensureEventFields(event: Partial<Nostr.Event>): event is Nostr.Event; /** Return an event that has earlier `created_at`. */ export declare function earlierEvent(a: Nostr.Event, b: Nostr.Event): Nostr.Event; /** Return an event that has later `created_at`. */ export declare function laterEvent(a: Nostr.Event, b: Nostr.Event): Nostr.Event; /** Sort key function to sort events based on `created_at`. */ export declare function compareEvents(a: Nostr.Event, b: Nostr.Event): number; //# sourceMappingURL=event.d.ts.map