Add enum and boolean inspectables
Summary: Add types to support enum and boolean inspectables Reviewed By: aigoncharov Differential Revision: D40344566 fbshipit-source-id: c1f719e634a4096e5dd63d3b96c6d64c9684c62b
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c46ddf7912
commit
1ee89d0e64
@@ -67,7 +67,9 @@ export type Inspectable =
|
|||||||
| InspectableObject
|
| InspectableObject
|
||||||
| InspectableText
|
| InspectableText
|
||||||
| InspectableNumber
|
| InspectableNumber
|
||||||
| InspectableColor;
|
| InspectableColor
|
||||||
|
| InspectableBoolean
|
||||||
|
| InspectableEnum;
|
||||||
|
|
||||||
export type InspectableText = {
|
export type InspectableText = {
|
||||||
type: 'text';
|
type: 'text';
|
||||||
@@ -81,6 +83,18 @@ export type InspectableNumber = {
|
|||||||
mutable: boolean;
|
mutable: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type InspectableBoolean = {
|
||||||
|
type: 'boolean';
|
||||||
|
value: boolean;
|
||||||
|
mutable: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type InspectableEnum = {
|
||||||
|
type: 'enum';
|
||||||
|
value: {value: string; values: string[]};
|
||||||
|
mutable: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
export type InspectableColor = {
|
export type InspectableColor = {
|
||||||
type: 'color';
|
type: 'color';
|
||||||
value: Color;
|
value: Color;
|
||||||
|
|||||||
Reference in New Issue
Block a user