@react-native-oh-tpl/realm
Version:
Realm by MongoDB is an offline-first mobile database: an alternative to SQLite and key-value stores
15 lines (14 loc) • 484 B
TypeScript
import { binding } from "../binding";
import type { TypeHelpers } from "../TypeHelpers";
/** @internal */
export type ResultsAccessor<T = unknown> = {
get: (results: binding.Results, index: number) => T;
};
type ResultsAccessorFactoryOptions<T> = {
realm: Realm;
typeHelpers: TypeHelpers<T>;
itemType: binding.PropertyType;
};
/** @internal */
export declare function createResultsAccessor<T>(options: ResultsAccessorFactoryOptions<T>): ResultsAccessor<T>;
export {};