UNPKG

realm

Version:

Realm by MongoDB is an offline-first mobile database: an alternative to SQLite and key-value stores

13 lines (12 loc) 330 B
type ResolveType<T> = (value: T | PromiseLike<T>) => void; type RejectType<T = unknown> = (reason?: T) => void; /** * Cross-platform alternative to `Promise.withResolvers()`. */ export declare class PromiseHandle<T> { resolve: ResolveType<T>; reject: RejectType; promise: Promise<T>; constructor(); } export {};