Add qualified name to Node
Summary: Our descriptors currently have a method to return the name as it will be displayed on the elements hierarchy. However, it doesn't provide enough context if the name is to be used to discover the type in our code base. This change adds a qualified name method that can provide a more complete name which can indeed be used by the Open In IDE functionality, for example. Reviewed By: passy Differential Revision: D40936785 fbshipit-source-id: 790ae02b9ebf37501765c52a24307fcaaaf9c14d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
51ca3a6cd7
commit
f33e3fc78b
@@ -52,6 +52,7 @@ export type UpdateMetadataEvent = {
|
||||
|
||||
export type UINode = {
|
||||
id: Id;
|
||||
qualifiedName: string;
|
||||
name: string;
|
||||
attributes: Record<MetadataId, Inspectable>;
|
||||
children: Id[];
|
||||
@@ -112,7 +113,7 @@ export type Id = number | TreeItemIndex;
|
||||
export type MetadataId = number;
|
||||
export type TreeState = {expandedNodes: Id[]};
|
||||
|
||||
export type Tag = 'Native' | 'Declarative' | 'Android' | 'Litho ';
|
||||
export type Tag = 'Native' | 'Declarative' | 'Android' | 'Litho';
|
||||
|
||||
export type Inspectable =
|
||||
| InspectableObject
|
||||
|
||||
Reference in New Issue
Block a user