Skip to content

Commit

Permalink
types: update types for optional sorting functions
Browse files Browse the repository at this point in the history
  • Loading branch information
DhivinX committed Jan 14, 2025
1 parent 155c775 commit 69a0de6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/plugins/TreeViewPlugin/TreeViewPlugin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ export declare type TreeViewPluginConfiguration = {
renderService?: ITreeViewRenderService;
/** When true, will show indeterminate state for checkboxes when some but not all child nodes are checked */
showIndeterminate?: boolean;
/** Optional function to replace the default elevation sort function. The function should take two nodes and return -1, 0 or 1. */
elevationSortFunction?: (node1: TreeViewNode, node2: TreeViewNode) => number;
/** Optional function to replace the default sort function. The function should take two nodes and return -1, 0 or 1. */
defaultSortFunction?: (node1: TreeViewNode, node2: TreeViewNode) => number;
};

/**
Expand Down

0 comments on commit 69a0de6

Please sign in to comment.