UNPKG

rx-nostr

Version:

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

10 lines (7 loc) 243 B
export type ValueOf<T> = T[keyof T]; export type OptionalPart<T> = { [K in keyof T as T extends Record<K, T[K]> ? never : K]-?: T[K]; }; export type RequiredPart<T> = { [K in keyof T as T extends Record<K, T[K]> ? K : never]-?: T[K]; };