@samitouri / QOS-React-2 / commits / 99a1e07aa6

Fix flow type

Lucas Cordeiro committed Apr 9, 2019 at 21:09 UTC 99a1e07aa658142eba1f48dff187a7b9f554fd71
1 file changed +2 -2
src/devtools/views/Components/KeyValue.js
+2 -2
@@ -1,6 +1,7 @@
1 // @flow
2
3 import React, { useState } from 'react';
4 +import type { Element } from 'react';
5 import EditableValue from './EditableValue';
6 import Button from '../Button';
7 import ButtonIcon from '../ButtonIcon';
@@ -112,8 +113,7 @@ export default function KeyValue({
113 );
114 } else {
115 children = open
115 - ? // $FlowFixMe "Missing type annotation for U" whatever that means
116 - Object.entries(value).map(([name, value]) => (
116 + ? Object.entries(value).map<Element<any>>(([name, value]) => (
117 <KeyValue
118 key={name}
119 depth={depth + 1}