UNPKG

reactopod

Version:

React Hooks for Typesaurus, type-safe Firestore ODM

8 lines (7 loc) 322 B
import { Collection } from 'typesaurus/collection' import { Doc } from 'typesaurus/doc' export default function useGetMany<Model>( collection: Collection<Model>, ids: readonly string[] | undefined, onMissing?: ((id: string) => Model) | 'ignore' ): typeof ids extends undefined ? undefined : Doc<Model>[] | undefined