@react-native-oh-tpl/realm
Version:
Realm by MongoDB is an offline-first mobile database: an alternative to SQLite and key-value stores
12 lines (11 loc) • 569 B
TypeScript
import { binding } from "../binding";
import type { OrderedCollectionInternal } from "../OrderedCollection";
import type { TypeHelpers } from "../TypeHelpers";
type Getter<CollectionType, T> = (collection: CollectionType, index: number) => T;
type GetterFactoryOptions<T> = {
fromBinding: TypeHelpers<T>["fromBinding"];
itemType: binding.PropertyType;
};
/** @internal */
export declare function createDefaultGetter<CollectionType extends OrderedCollectionInternal, T>({ fromBinding, itemType, }: GetterFactoryOptions<T>): Getter<CollectionType, T>;
export {};