mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
c6b8c75b6b
commit
0d748cf8bb
Vendored
+3
-3
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user