diff --git a/src/common/util/tree/hasLeaves.ts b/src/common/util/tree/hasLeaves.ts index 79b8f58..6ed34f3 100644 --- a/src/common/util/tree/hasLeaves.ts +++ b/src/common/util/tree/hasLeaves.ts @@ -1,3 +1,3 @@ import { TableNode } from '@table-library/react-table-library/types/table'; -export const hasLeaves = (node: TableNode) => !!node.nodes?.length; +export const hasLeaves = (node: T): boolean => !!node.nodes?.length; diff --git a/src/common/util/tree/isLeaf.ts b/src/common/util/tree/isLeaf.ts index 9e8a836..04dd84b 100644 --- a/src/common/util/tree/isLeaf.ts +++ b/src/common/util/tree/isLeaf.ts @@ -1,3 +1,3 @@ import { TableNode } from '@table-library/react-table-library/types/table'; -export const isLeaf = (node: TableNode) => !node.nodes; +export const isLeaf = (node: T): boolean => !node.nodes;