Skip to content

Commit 96b39b3

Browse files
fix ts in react
1 parent c28a968 commit 96b39b3

File tree

1 file changed

+1
-1
lines changed
  • packages/devextreme-cli/src/templates/react/application/src

1 file changed

+1
-1
lines changed

packages/devextreme-cli/src/templates/react/application/src/theme.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ export function useThemeContext() {
5050
return useMemo(()=> ({ theme, switchTheme, isDark }), [theme]);
5151
}
5252

53-
export const ThemeContext = React.createContext(null);
53+
export const ThemeContext = React.createContext<%=#isTypeScript%><ReturnType<typeof useThemeContext> | null><%=/isTypeScript%>(null);

0 commit comments

Comments
 (0)