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:
Lorenzo Blasa
2022-10-18 04:30:51 -07:00
committed by Facebook GitHub Bot
parent f7a624a143
commit 0572808f1a
27 changed files with 417 additions and 132 deletions

View File

@@ -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;
};