@sanity/form-builder
Version:
Sanity form builder
13 lines • 626 B
TypeScript
import { CrossDatasetReferenceSchemaType } from '@sanity/types';
import { Observable } from 'rxjs';
import { SanityClient } from '@sanity/client';
import { CrossDatasetReferenceInfo } from '../../../../inputs/CrossDatasetReferenceInput/types';
/**
* Takes a client instance and returns a function that can be called to retrieve reference information
* @param client
*/
export declare function createGetReferenceInfo(client: SanityClient): (doc: {
_id: string;
_type?: string;
}, referenceType: CrossDatasetReferenceSchemaType) => Observable<CrossDatasetReferenceInfo>;
//# sourceMappingURL=getReferenceInfo.d.ts.map