@refinedev/core
Version:
Refine is a React meta-framework for building enterprise-level, data-intensive applications rapidly with support for modern UI libraries and headless integrations.
22 lines • 909 B
TypeScript
import type { BaseKey, CrudFilter, CrudSort, MetaQuery } from "../../../contexts/data/types";
import type { LiveEvent, LiveModeProps } from "../../../contexts/live/types";
export type UseResourceSubscriptionProps = {
channel: string;
params?: {
ids?: BaseKey[];
id?: BaseKey;
sorters?: CrudSort[];
filters?: CrudFilter[];
subscriptionType: "useList" | "useOne" | "useMany";
[key: string]: any;
};
types: LiveEvent["type"][];
resource?: string;
enabled?: boolean;
meta?: MetaQuery & {
dataProviderName?: string;
};
} & LiveModeProps;
export type PublishType = (event: LiveEvent) => void;
export declare const useResourceSubscription: ({ resource: resourceFromProp, params, channel, types, enabled, liveMode: liveModeFromProp, onLiveEvent, meta, }: UseResourceSubscriptionProps) => void;
//# sourceMappingURL=index.d.ts.map