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 @@ -6975,9 +6975,9 @@ declare export default typeof NativeSettingsManager;
6975
6975
6976
6976
exports[`public API should not change unintentionally Libraries/Settings/Settings.js 1`] = `
6977
6977
"declare const Settings: {
6978
- get(key: string): mixed ,
6978
+ get(key: string): any ,
6979
6979
set(settings: Object): void,
6980
- watchKeys(keys: string | Array<string>, callback: Function ): number,
6980
+ watchKeys(keys: string | Array<string>, callback: () => void ): number,
6981
6981
clearWatch(watchId: number): void,
6982
6982
};
6983
6983
declare export default typeof Settings;
Original file line number Diff line number Diff line change @@ -31,9 +31,11 @@ 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' ,
36
37
'react-native/src/private/specs/modules/NativeToastAndroid.js' ,
38
+ 'react-native/src/private/specs_DEPRECATED/modules/NativeSettingsManager.js' ,
37
39
// TODO(T210505412): Include input packages, e.g. virtualized-lists
38
40
] ;
39
41
You can’t perform that action at this time.
0 commit comments