Skip to content

Commit 4342c77

Browse files
Adding NumberTypeAnnotation to Codegen Schema (facebook#54586)
Summary: 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
1 parent d13bc56 commit 4342c77

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/react-native-codegen/src/CodegenSchema.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ export interface FloatTypeAnnotation {
2626
readonly type: 'FloatTypeAnnotation';
2727
}
2828

29+
export interface NumberTypeAnnotation {
30+
readonly type: 'NumberTypeAnnotation';
31+
}
32+
2933
export interface BooleanTypeAnnotation {
3034
readonly type: 'BooleanTypeAnnotation';
3135
}

packages/react-native-codegen/src/CodegenSchema.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ export type FloatTypeAnnotation = $ReadOnly<{
3030
type: 'FloatTypeAnnotation',
3131
}>;
3232

33+
export type NumberTypeAnnotation = $ReadOnly<{
34+
type: 'NumberTypeAnnotation',
35+
}>;
36+
3337
export type BooleanTypeAnnotation = $ReadOnly<{
3438
type: 'BooleanTypeAnnotation',
3539
}>;

0 commit comments

Comments
 (0)