We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e27761a commit da9d8fdCopy full SHA for da9d8fd
client/modules/IDE/actions/preferences.ts
@@ -247,7 +247,12 @@ export function setGridOutput(value: SetGridOutputValue) {
247
};
248
}
249
250
-export function setTheme(value) {
+export type SetThemeValue = PreferencesState['theme'];
251
+export type SetThemeAction = {
252
+ type: typeof ActionTypes.SET_THEME;
253
+ preferences: SetThemeValue;
254
+};
255
+export function setTheme(value: SetThemeValue) {
256
return (dispatch: UpdatePreferencesDispatch, getState: GetRootState) => {
257
dispatch({
258
type: ActionTypes.SET_THEME,
0 commit comments