You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
558 B
19 lines
558 B
import * as React from 'react';
|
|
import { NamePath, StoreValue } from './interface';
|
|
interface ListField {
|
|
name: number;
|
|
key: number;
|
|
isListField: boolean;
|
|
}
|
|
interface ListOperations {
|
|
add: (defaultValue?: StoreValue) => void;
|
|
remove: (index: number | number[]) => void;
|
|
move: (from: number, to: number) => void;
|
|
}
|
|
interface ListProps {
|
|
name: NamePath;
|
|
children?: (fields: ListField[], operations: ListOperations) => JSX.Element | React.ReactNode;
|
|
}
|
|
declare const List: React.FunctionComponent<ListProps>;
|
|
export default List;
|