@sanity/preview-kit
Version:
General purpose utils for live content and visual editing
25 lines (19 loc) • 707 B
text/typescript
import {LiveQueryClientComponentProps} from '@sanity/preview-kit/live-query/client-component'
import type {QueryParams} from '@sanity/client'
/** @public */
declare function LiveQuery<QueryResult, QueryParams extends QueryParams = QueryParams>(
props: LiveQueryProps<QueryResult, QueryParams>,
): React.ReactNode
declare namespace LiveQuery {
var displayName: string
}
export {LiveQuery}
export default LiveQuery
export {LiveQueryClientComponentProps}
/** @public */
export declare interface LiveQueryProps<QueryResult, QueryParams extends QueryParams = QueryParams>
extends LiveQueryClientComponentProps<QueryResult, QueryParams> {
enabled: boolean
as?: React.ComponentType<any>
}
export {}