@cranq/tree-utils
Advanced tools
Comparing version 1.0.0 to 1.0.1
import { ContainerNode } from "../types/ContainerNode"; | ||
import { Node } from "../types/Node"; | ||
import { Path } from "../types/Path"; | ||
export declare function getNode<N extends Node>(tree: ContainerNode<any>, path: Path): N; | ||
export declare function getNode<N extends Node>(tree: ContainerNode<any>, path: Path): N | undefined; |
{ | ||
"name": "@cranq/tree-utils", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Tree manipulation utilities", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -14,3 +14,3 @@ import {ContainerNode} from "../types/ContainerNode"; | ||
path: Path | ||
): N { | ||
): N | undefined { | ||
const length = path.length; | ||
@@ -26,3 +26,3 @@ let node = tree as Node; | ||
} | ||
return node as N; | ||
return node as N | undefined; | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85645