Rename NativeModulePropertySchema -> NativeModulePropertyShape

Summary:
Everywhere else in the CodegenSchema, type annotation partials are suffixed with "Shape". In the NativeModule schema, we were using the suffix "Schema". In this diff, we standardize on the "Shape" suffix.

Changelog: [Internal]

Reviewed By: yungsters

Differential Revision: D24719395

fbshipit-source-id: 307935f5fe0681c31cd52e9cf4ae579f61c1ae68
This commit is contained in:
Ramanpreet Nara authored and Facebook GitHub Bot committed 2020-11-05 18:30:08 -08:00
1 parent c6b8c75b6b
commit 0d748cf8bb
6 files changed
+18 -18

No files matched your search

@@ -11,11 +11,11 @@
'use strict';
import type {
NativeModulePropertySchema,
Nullable,
NamedShape,
NativeModuleParamTypeAnnotation,
NativeModuleReturnTypeAnnotation,
NativeModulePropertyShape,
} from '../../../CodegenSchema';
import type {AliasResolver} from '../Utils';
@@ -62,7 +62,7 @@ export type MethodSerializationOutput = $ReadOnly<{|
function serializeMethod(
hasteModuleName: string,
property: NativeModulePropertySchema,
property: NativeModulePropertyShape,
structCollector: StructCollector,
resolveAlias: AliasResolver,
): $ReadOnlyArray<MethodSerializationOutput> {
@@ -384,7 +384,7 @@ function getReturnJSType(
function serializeConstantsProtocolMethods(
hasteModuleName: string,
property: NativeModulePropertySchema,
property: NativeModulePropertyShape,
structCollector: StructCollector,
resolveAlias: AliasResolver,
): $ReadOnlyArray<MethodSerializationOutput> {