mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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:
1 parent
88447cf207
commit
f5e27e48a8
2 files changed
+8
No files matched your search
@@ -26,6 +26,10 @@ export interface FloatTypeAnnotation {
|
||||
readonly type: 'FloatTypeAnnotation';
|
||||
}
|
||||
|
||||
export interface NumberTypeAnnotation {
|
||||
readonly type: 'NumberTypeAnnotation';
|
||||
}
|
||||
|
||||
export interface BooleanTypeAnnotation {
|
||||
readonly type: 'BooleanTypeAnnotation';
|
||||
}
|
||||
|
||||
@@ -30,6 +30,10 @@ export type FloatTypeAnnotation = $ReadOnly<{
|
||||
type: 'FloatTypeAnnotation',
|
||||
}>;
|
||||
|
||||
export type NumberTypeAnnotation = $ReadOnly<{
|
||||
type: 'NumberTypeAnnotation',
|
||||
}>;
|
||||
|
||||
export type BooleanTypeAnnotation = $ReadOnly<{
|
||||
type: 'BooleanTypeAnnotation',
|
||||
}>;
|
||||
|
||||
Reference in new issue
Block a user