Flowtyping

This commit is contained in:
Tom Moor
2017-12-03 11:13:35 -08:00
parent 15e8e50601
commit 802f6e6594
23 changed files with 168 additions and 189 deletions

View File

@ -1,6 +1,6 @@
// @flow
import React from 'react';
import type { props } from 'slate-prop-types';
import type { SlateNodeProps } from '../types';
import TodoItem from './TodoItem';
export default function ListItem({
@ -8,7 +8,7 @@ export default function ListItem({
node,
attributes,
...props
}: props) {
}: SlateNodeProps) {
const checked = node.data.get('checked');
if (checked !== undefined) {