@@ -23,7 +23,7 @@ function updatePreferences(
2323 } ) ;
2424}
2525
26- type SetPreferencesTabValue = PreferencesState [ 'tabIndex' ] ;
26+ export type SetPreferencesTabValue = PreferencesState [ 'tabIndex' ] ;
2727export type SetPreferencesTabAction = {
2828 type : typeof ActionTypes . SET_PREFERENCES_TAB ;
2929 value : SetPreferencesTabValue ;
@@ -35,7 +35,7 @@ export function setPreferencesTab(value: SetPreferencesTabValue) {
3535 } ;
3636}
3737
38- type SetFontSizeValue = PreferencesState [ 'fontSize' ] ;
38+ export type SetFontSizeValue = PreferencesState [ 'fontSize' ] ;
3939export type SetFontSizeAction = {
4040 type : typeof ActionTypes . SET_FONT_SIZE ;
4141 value : SetFontSizeAction ;
@@ -59,7 +59,7 @@ export function setFontSize(value: SetFontSizeValue) {
5959 } ;
6060}
6161
62- type SetLineNumbersValue = PreferencesState [ 'lineNumbers' ] ;
62+ export type SetLineNumbersValue = PreferencesState [ 'lineNumbers' ] ;
6363export type SetLineNumbersAction = {
6464 type : typeof ActionTypes . SET_LINE_NUMBERS ;
6565 value : SetLineNumbersValue ;
@@ -82,7 +82,7 @@ export function setLineNumbers(value: SetLineNumbersValue) {
8282 } ;
8383}
8484
85- type SetAutocloseBracketsQuotesValue = PreferencesState [ 'autocloseBracketsQuotes' ] ;
85+ export type SetAutocloseBracketsQuotesValue = PreferencesState [ 'autocloseBracketsQuotes' ] ;
8686export type SetAutocloseBracketsQuotesAction = {
8787 type : typeof ActionTypes . SET_AUTOCLOSE_BRACKETS_QUOTES ;
8888 value : SetAutocloseBracketsQuotesValue ;
@@ -107,7 +107,7 @@ export function setAutocloseBracketsQuotes(
107107 } ;
108108}
109109
110- type SetAutocompleteHinterValue = PreferencesState [ 'autocompleteHinter' ] ;
110+ export type SetAutocompleteHinterValue = PreferencesState [ 'autocompleteHinter' ] ;
111111export type SetAutocompleteHinterValueAction = {
112112 type : typeof ActionTypes . SET_AUTOCLOSE_BRACKETS_QUOTES ;
113113 value : SetAutocompleteHinterValue ;
@@ -130,7 +130,12 @@ export function setAutocompleteHinter(value: SetAutocompleteHinterValue) {
130130 } ;
131131}
132132
133- export function setAutosave ( value ) {
133+ export type SetAutosaveValue = PreferencesState [ 'autosave' ] ;
134+ export type SetAutosaveAction = {
135+ type : typeof ActionTypes . SET_AUTOSAVE ;
136+ value : SetAutosaveValue ;
137+ } ;
138+ export function setAutosave ( value : SetAutosaveValue ) {
134139 return ( dispatch : UpdatePreferencesDispatch , getState : GetRootState ) => {
135140 dispatch ( {
136141 type : ActionTypes . SET_AUTOSAVE ,
@@ -148,7 +153,12 @@ export function setAutosave(value) {
148153 } ;
149154}
150155
151- export function setLinewrap ( value ) {
156+ export type SetLinewrapValue = PreferencesState [ 'linewrap' ] ;
157+ export type SetLinewrapAction = {
158+ type : typeof ActionTypes . SET_LINEWRAP ;
159+ value : SetLinewrapValue ;
160+ } ;
161+ export function setLinewrap ( value : SetLinewrapValue ) {
152162 return ( dispatch : UpdatePreferencesDispatch , getState : GetRootState ) => {
153163 dispatch ( {
154164 type : ActionTypes . SET_LINEWRAP ,
@@ -166,7 +176,12 @@ export function setLinewrap(value) {
166176 } ;
167177}
168178
169- export function setLintWarning ( value ) {
179+ export type SetLintWarningValue = PreferencesState [ 'lintWarning' ] ;
180+ export type SetLintWarningAction = {
181+ type : typeof ActionTypes . SET_LINT_WARNING ;
182+ value : SetLintWarningValue ;
183+ } ;
184+ export function setLintWarning ( value : SetLintWarningValue ) {
170185 return ( dispatch : UpdatePreferencesDispatch , getState : GetRootState ) => {
171186 dispatch ( {
172187 type : ActionTypes . SET_LINT_WARNING ,
0 commit comments