@helenejs/react
Version:
Real-time Web Apps for Node.js
20 lines (19 loc) • 608 B
TypeScript
import { Collection } from '@helenejs/data';
type Props = {
method: string;
channel?: string;
params?: any;
/**
* Scope the data to a specific filter.
*/
filter?: Record<string, any>;
sort?: Record<string, 1 | -1>;
projection?: Record<string, 0 | 1>;
selectiveSync?: boolean;
authenticated?: boolean;
collectionName?: string;
collection?: Collection;
single?: boolean;
};
export declare function useData({ method, channel, params, filter, sort, projection, selectiveSync, authenticated, collectionName, collection, single, }: Props): any;
export {};