UNPKG

@sanity/form-builder

Version:
17 lines 708 B
import React from 'react'; import { Reference, SchemaType } from '@sanity/types'; import { InsertEvent } from '../arrays/ArrayOfObjectsInput/types'; import { BaseInputProps } from './types'; export interface Props extends BaseInputProps { value: OptionalRef; isSortable: boolean; insertableTypes?: SchemaType[]; onInsert?: (event: InsertEvent) => void; } declare type PartialPick<T, K extends keyof T> = Omit<T, K> & { [P in K]?: T[K]; }; declare type OptionalRef = PartialPick<Reference, '_ref'>; export declare const ArrayItemReferenceInput: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>; export {}; //# sourceMappingURL=ArrayItemReferenceInput.d.ts.map