[fancytree] Add ext-persist's getPersistData() return type (#41001)

This commit is contained in:
Leonidas Arvanitis
2019-12-13 09:21:00 +00:00
committed by Orta
parent a971af3010
commit 7f6e442b7e
+8 -1
View File
@@ -132,7 +132,7 @@ declare namespace Fancytree {
getNodesByRef(refKey: string, rootNode?: FancytreeNode): FancytreeNode[];
/** [ext-persist] Return persistence information from cookies Called like $("#tree").fancytree("getTree").getPersistData(); */
getPersistData(): void;
getPersistData(): PersistData;
/** Return the invisible system root node. */
getRootNode(): FancytreeNode;
@@ -881,6 +881,13 @@ declare namespace Fancytree {
noData?: string;
}
interface PersistData {
active: string | null;
expanded: string[];
focus: string | null;
selected: string[];
}
namespace Extensions {
interface List {
dnd5?: DragAndDrop5;