/
githubmirror
/
react-beautiful-dnd
Обзор
Документация
Войти
/
githubmirror
/
react-beautiful-dnd
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/test-flow-types.js
48 строк
1 KB
Alex Reardon
fixing linting
04 фев 2020, 09:06
04 фев 2020, 09:06
adb3957
Код
Авторство
О чём код?
// @flow /* eslint-disable */ import * as React from 'react'; import { DragDropContext, Droppable, Draggable } from '../src'; // DragDropContext { <React.Fragment> <DragDropContext onDragEnd={() => {}}>{null}</DragDropContext> {/* $ExpectError onDragEnd is required */} <DragDropContext>{null}</DragDropContext> {/* $ExpectError children is required */} <DragDropContext onDragEnd={() => {}} /> </React.Fragment>; } // Droppable { <React.Fragment> <Droppable droppableId="">{() => null}</Droppable> {/* $ExpectError droppableId is required */} <Droppable>{() => null}</Droppable> {/* $ExpectError droppableId must be a string */} <Droppable droppableId={3}>{() => null}</Droppable> {/* $ExpectError children as function is required*/} <Droppable droppableId="" /> </React.Fragment>; } // Draggable { <React.Fragment> <Draggable draggableId="" index={0}> {() => null} </Draggable> {/* $ExpectError draggableId is required */} <Draggable index={0}>{() => null}</Draggable> {/* $ExpectError draggableId must be a string */} <Draggable draggableId={2} index={0}> {() => null} </Draggable> {/* $ExpectError index is required */} <Draggable draggableId="">{() => null}</Draggable> {/* $ExpectError children as function is required*/} <Draggable draggableId="" index={0} /> </React.Fragment>; }