@react-native-ohos/realm
Version:
Realm by MongoDB is an offline-first mobile database: an alternative to SQLite and key-value stores
13 lines • 373 B
TypeScript
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 {};
//# sourceMappingURL=PromiseHandle.d.ts.map