Detect if given Component is LithoComponent
Summary: Useful for next diffs: enables to detect whether we have LithoComponent or CKComponent Reviewed By: adityasharat Differential Revision: D23128972 fbshipit-source-id: b9aef358c1426df4f05213c42e43402e8cae984f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
26b54ece5a
commit
939ed27aad
@@ -171,6 +171,7 @@ export {default as SearchableTable_immutable} from './ui/components/searchable/S
|
||||
export {
|
||||
ElementID,
|
||||
ElementData,
|
||||
ElementFramework,
|
||||
ElementAttribute,
|
||||
Element,
|
||||
ElementSearchResultSet,
|
||||
|
||||
@@ -32,6 +32,11 @@ export type ElementData = {
|
||||
};
|
||||
};
|
||||
|
||||
export enum ElementFramework {
|
||||
'LITHO',
|
||||
'CK',
|
||||
}
|
||||
|
||||
export type ElementAttribute = {
|
||||
name: string;
|
||||
value: string;
|
||||
@@ -41,7 +46,9 @@ export type ElementExtraInfo = {
|
||||
linkedNode?: string; // id of linked node in opposite tree
|
||||
expandWithParent?: boolean;
|
||||
linkedTree?: string;
|
||||
className?: string;
|
||||
metaData?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
};
|
||||
|
||||
export type Element = {
|
||||
|
||||
Reference in New Issue
Block a user