mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Codemod cycle annotations for xplat/js
Summary: Add annotations using flow codemod annotate-cycles --write Changelog: [internal] Reviewed By: SamChou19815 Differential Revision: D40896688 fbshipit-source-id: 0c32932d17542be070360db29b7797f8e6e5978b
This commit is contained in:
1 parent
d71d0db51d
commit
91d58cf5b5
12 files changed
+34
-22
No files matched your search
Vendored
+1
-1
@@ -295,7 +295,7 @@ function getParamObjCType(
|
||||
function getReturnObjCType(
|
||||
methodName: string,
|
||||
nullableTypeAnnotation: Nullable<NativeModuleReturnTypeAnnotation>,
|
||||
) {
|
||||
): string {
|
||||
const [typeAnnotation, nullable] = unwrapNullable(nullableTypeAnnotation);
|
||||
|
||||
function wrapIntoNullableIfNeeded(generatedType: string) {
|
||||
|
||||
Reference in new issue
Block a user