Skip to content

Commit 7a2a210

Browse files
committed
Fix flow types errors
1 parent 79e9af7 commit 7a2a210

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',
@@ -274,7 +275,7 @@ const styles = {
274275
},
275276
};
276277

277-
export default function ThemeProvider({children}) {
278+
export default function ThemeProvider({children}: {|children: React$Node|}) {
278279
const {theme, displayDensity, browserTheme} = useContext(SettingsContext);
279280

280281
const style = useMemo(

0 commit comments

Comments
 (0)