From fbb1befa4ff73ef5435d52816cff79c3d91a86a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Sun, 7 May 2023 22:25:05 +0300 Subject: [PATCH] Refactor #3924 - For Tree .d.ts --- components/lib/tree/Tree.d.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/components/lib/tree/Tree.d.ts b/components/lib/tree/Tree.d.ts index e3ecda194..a45adc297 100755 --- a/components/lib/tree/Tree.d.ts +++ b/components/lib/tree/Tree.d.ts @@ -18,6 +18,7 @@ export declare type TreePassThroughOptionType = TreePassThroughAttributes | ((op export interface TreePassThroughMethodOptions { props: TreeProps; state: TreeState; + context: TreeContext; } /** @@ -200,6 +201,27 @@ export interface TreeState { filterValue: string; } +/** + * Defines current options in Tree component. + */ +export interface TreeContext { + /** + * Current expanded state of the node as a boolean. + * @defaultValue false + */ + expanded: boolean; + /** + * Current selected state of the node as a boolean. + * @defaultValue false + */ + selected: boolean; + /** + * Current checked state of the node as a boolean. + * @defaultValue false + */ + checked: boolean; +} + /** * Defines valid properties in Tree component. */