Skip to content

Commit ea75e97

Browse files
committed
Fix flow types errors
1 parent b596cbf commit ea75e97

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/react-devtools-shared/src/devtools/views/ThemeProvider.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
import * as React from 'react';
1111
import {useContext, useMemo} from 'react';
1212
import {SettingsContext} from './Settings/SettingsContext';
13+
import type {Theme, DisplayDensity} from './Settings/SettingsContext';
1314

14-
const styles = {
15+
const styles: {[style: Theme | DisplayDensity]: any} = {
1516
light: {
1617
'--color-attribute-name': '#ef6632',
1718
'--color-attribute-name-not-editable': '#23272f',
@@ -284,7 +285,7 @@ const styles = {
284285
},
285286
};
286287

287-
export default function ThemeProvider({children}) {
288+
export default function ThemeProvider({children}: {|children: React$Node|}) {
288289
const {theme, displayDensity, browserTheme} = useContext(SettingsContext);
289290

290291
const style = useMemo(

0 commit comments

Comments
 (0)