UNPKG

@hydevs/hypb

Version:

<img src="https://github.com/Hydevs-Corp/Hypb/blob/9308ab4c17196e5c0083c983a528326fd2cba867/.github/assets/banner.png" alt="usehooks-ts banner" align="center" />

14 lines (13 loc) 424 B
import { RecordListOptions, RecordModel } from 'pocketbase'; import { Collections } from './Collections'; import { filters } from './filter'; export type UseCollectionOptions<T extends keyof Collections, R> = { queryParams?: RecordListOptions; filter?: filters<T> | string; defaultValue?: (R & RecordModel)[]; realtime?: boolean; pageParams?: { perPage?: number; page?: number; }; };