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:
Mike Vitousek authored and Facebook GitHub Bot committed 2022-11-01 17:13:27 -07:00
1 parent d71d0db51d
commit 91d58cf5b5
12 files changed
+34 -22

No files matched your search

@@ -295,7 +295,7 @@ function getParamObjCType(
function getReturnObjCType(
methodName: string,
nullableTypeAnnotation: Nullable<NativeModuleReturnTypeAnnotation>,
) {
): string {
const [typeAnnotation, nullable] = unwrapNullable(nullableTypeAnnotation);
function wrapIntoNullableIfNeeded(generatedType: string) {