Add additional inspectables
Summary: This change adds support for more inspectables and also introduces more complex types to be used as a value. This become specially useful for more complex yet primitive types like coordinate, size, bounds, etc. Reviewed By: LukeDefeo Differential Revision: D40307885 fbshipit-source-id: 125e832f06d6b31f56eb5405182d1c0d61388930
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f7a624a143
commit
0572808f1a
@@ -51,6 +51,13 @@ export type Bounds = {
|
||||
height: number;
|
||||
};
|
||||
|
||||
export type Color = {
|
||||
r: number;
|
||||
g: number;
|
||||
b: number;
|
||||
alpha: number;
|
||||
};
|
||||
|
||||
export type Snapshot = string;
|
||||
export type Id = number;
|
||||
|
||||
@@ -76,7 +83,13 @@ export type InspectableNumber = {
|
||||
|
||||
export type InspectableColor = {
|
||||
type: 'number';
|
||||
value: number;
|
||||
value: Color;
|
||||
mutable: boolean;
|
||||
};
|
||||
|
||||
export type InspectableBounds = {
|
||||
type: 'bounds';
|
||||
value: Bounds;
|
||||
mutable: boolean;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user