Adding NumberTypeAnnotation to Codegen Schema (#54586)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/54586

Adding NumberTypeAnnotation to the Codegen Schema in order to obtain parity with String & Boolean which will be the Union types

Changelog: [Internal]

Reviewed By: elicwhite

Differential Revision: D87374063

fbshipit-source-id: aa17f13736075ea753b078e0f9ee3c0d24eec534
This commit is contained in:
Arushi Kesarwani authored and meta-codesync[bot] committed 2025-11-19 22:30:28 -08:00
1 parent 88447cf207
commit f5e27e48a8
2 files changed
+8

No files matched your search

+4
View File
@@ -26,6 +26,10 @@ export interface FloatTypeAnnotation {
readonly type: 'FloatTypeAnnotation';
}
export interface NumberTypeAnnotation {
readonly type: 'NumberTypeAnnotation';
}
export interface BooleanTypeAnnotation {
readonly type: 'BooleanTypeAnnotation';
}
+4
View File
@@ -30,6 +30,10 @@ export type FloatTypeAnnotation = $ReadOnly<{
type: 'FloatTypeAnnotation',
}>;
export type NumberTypeAnnotation = $ReadOnly<{
type: 'NumberTypeAnnotation',
}>;
export type BooleanTypeAnnotation = $ReadOnly<{
type: 'BooleanTypeAnnotation',
}>;