mirror of
https://github.com/anvaka/ngraph.path.git
synced 2026-01-18 15:13:12 +00:00
fixed type of Link in distance function
I believe the typeof the `link` argument should be LinkData, not NodeData
This commit is contained in:
parent
50a51a0c26
commit
ce49a63c4e
2
index.d.ts
vendored
2
index.d.ts
vendored
@ -12,7 +12,7 @@ declare module "ngraph.path" {
|
||||
oriented?: boolean
|
||||
quitFast?: boolean
|
||||
heuristic?: (from: Node<NodeData>, to: Node<NodeData>) => number
|
||||
distance?: (from: Node<NodeData>, to: Node<NodeData>, link: Link<NodeData>) => number
|
||||
distance?: (from: Node<NodeData>, to: Node<NodeData>, link: Link<LinkData>) => number
|
||||
}
|
||||
|
||||
interface PathFinder<NodeData> {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user