Skip to content

Commit db6fb79

Browse files
authored
Merge pull request #3704 from clairep94/pr05_finals_refineServerAndReducerTypes
Pr05 Typescript Migration #20: Refine server/types & client/reducer types
2 parents e7357d3 + 395b599 commit db6fb79

File tree

16 files changed

+330
-128
lines changed

16 files changed

+330
-128
lines changed

client/modules/IDE/actions/preferences.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import type {
66
UpdatePreferencesDispatch,
77
SetPreferencesTabValue,
88
SetFontSizeValue,
9-
GetRootState,
109
SetLineNumbersValue,
1110
SetAutocloseBracketsQuotesValue,
1211
SetAutocompleteHinterValue,
@@ -20,6 +19,7 @@ import type {
2019
SetLanguageValue,
2120
SetThemeValue
2221
} from './preferences.types';
22+
import type { GetRootState } from '../../../reducers';
2323

2424
function updatePreferences(
2525
formParams: UpdatePreferencesRequestBody,

client/modules/IDE/actions/preferences.types.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as ActionTypes from '../../../constants';
22
import type { PreferencesState } from '../reducers/preferences';
3-
import type { RootState } from '../../../reducers';
3+
import type { GetRootState } from '../../../reducers';
44

55
// Value Definitions:
66
export type SetPreferencesTabValue = PreferencesState['tabIndex'];
@@ -112,5 +112,3 @@ export type PreferencesThunk = (
112112
dispatch: UpdatePreferencesDispatch,
113113
getState: GetRootState
114114
) => void;
115-
116-
export type GetRootState = () => RootState;

0 commit comments

Comments
 (0)