mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Make deprecated native module specs Flow strict-local (#57724)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/57724 Upgrade the legacy native module spec files from `flow` to `flow strict-local` to enforce stricter local type checking. Loose `Object` types were replaced with the codegen-equivalent `UnsafeObject`, and `Array<any>` parameters with `Array<unknown>`, both of which are codegen-identical so the generated native interfaces are unchanged. Changelog: [Internal] Reviewed By: javache Differential Revision: D113763785 fbshipit-source-id: 085a0a570246eeda27b3c22a56a2696b04821fd5
This commit is contained in:
1 parent
0d64c9a13a
commit
1a7c318ffc
20 files changed
+87
-62
No files matched your search
@@ -2506,7 +2506,7 @@ protocol NativeRedBoxSpec : public NSObjectRCTBridgeModule, public RCTTurboModul
|
||||
}
|
||||
|
||||
protocol NativeSampleTurboModuleSpec : public NSObjectRCTBridgeModule, public RCTTurboModule {
|
||||
public virtual NSArray<id<NSObject>>* getArray:(NSArray* arg);
|
||||
public virtual NSArray<NSDictionary*>* getArray:(NSArray* arg);
|
||||
public virtual NSDictionary* getObject:(NSDictionary* arg);
|
||||
public virtual NSDictionary* getObjectAssert:(NSDictionary* arg);
|
||||
public virtual NSDictionary* getObjectThrows:(NSDictionary* arg);
|
||||
|
||||
@@ -2499,7 +2499,7 @@ protocol NativeRedBoxSpec : public NSObjectRCTBridgeModule, public RCTTurboModul
|
||||
}
|
||||
|
||||
protocol NativeSampleTurboModuleSpec : public NSObjectRCTBridgeModule, public RCTTurboModule {
|
||||
public virtual NSArray<id<NSObject>>* getArray:(NSArray* arg);
|
||||
public virtual NSArray<NSDictionary*>* getArray:(NSArray* arg);
|
||||
public virtual NSDictionary* getObject:(NSDictionary* arg);
|
||||
public virtual NSDictionary* getObjectAssert:(NSDictionary* arg);
|
||||
public virtual NSDictionary* getObjectThrows:(NSDictionary* arg);
|
||||
|
||||
@@ -2506,7 +2506,7 @@ protocol NativeRedBoxSpec : public NSObjectRCTBridgeModule, public RCTTurboModul
|
||||
}
|
||||
|
||||
protocol NativeSampleTurboModuleSpec : public NSObjectRCTBridgeModule, public RCTTurboModule {
|
||||
public virtual NSArray<id<NSObject>>* getArray:(NSArray* arg);
|
||||
public virtual NSArray<NSDictionary*>* getArray:(NSArray* arg);
|
||||
public virtual NSDictionary* getObject:(NSDictionary* arg);
|
||||
public virtual NSDictionary* getObjectAssert:(NSDictionary* arg);
|
||||
public virtual NSDictionary* getObjectThrows:(NSDictionary* arg);
|
||||
|
||||
Reference in new issue
Block a user