File tree 3 files changed +6
-4
lines changed
packages/react-native/Libraries
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11
11
'use strict' ;
12
12
13
13
const Settings = {
14
- get ( key : string ) : mixed {
14
+ get ( key : string ) : any {
15
15
console . warn ( 'Settings is not yet supported on this platform.' ) ;
16
16
return null ;
17
17
} ,
@@ -20,7 +20,7 @@ const Settings = {
20
20
console . warn ( 'Settings is not yet supported on this platform.' ) ;
21
21
} ,
22
22
23
- watchKeys ( keys : string | Array < string > , callback : Function ) : number {
23
+ watchKeys ( keys : string | Array < string > , callback : ( ) = > void ) : number {
24
24
console . warn ( 'Settings is not yet supported on this platform.' ) ;
25
25
return - 1 ;
26
26
} ,
Original file line number Diff line number Diff line change @@ -6951,9 +6951,9 @@ declare export default typeof NativeSettingsManager;
6951
6951
6952
6952
exports[`public API should not change unintentionally Libraries/Settings/Settings.js 1`] = `
6953
6953
"declare const Settings: {
6954
- get(key: string): mixed ,
6954
+ get(key: string): any ,
6955
6955
set(settings: Object): void,
6956
- watchKeys(keys: string | Array<string>, callback: Function ): number,
6956
+ watchKeys(keys: string | Array<string>, callback: () => void ): number,
6957
6957
clearWatch(watchId: number): void,
6958
6958
};
6959
6959
declare export default typeof Settings;
Original file line number Diff line number Diff line change @@ -31,8 +31,10 @@ const SOURCE_PATTERNS = [
31
31
'react-native/Libraries/Types/RootTagTypes.js' ,
32
32
'react-native/Libraries/ReactNative/RootTag.js' ,
33
33
'react-native/Libraries/Utilities/Platform.js' ,
34
+ 'react-native/Libraries/Settings/**/*.js' ,
34
35
'react-native/src/private/specs_DEPRECATED/modules/NativeAlertManager.js' ,
35
36
'react-native/src/private/specs_DEPRECATED/modules/NativeActionSheetManager.js' ,
37
+ 'react-native/src/private/specs_DEPRECATED/modules/NativeSettingsManager.js' ,
36
38
// TODO(T210505412): Include input packages, e.g. virtualized-lists
37
39
] ;
38
40
You can’t perform that action at this time.
0 commit comments