fixed type of Link in distance function

I believe the typeof the `link` argument should be LinkData, not NodeData
This commit is contained in:
Lewis 2019-07-28 17:04:35 +02:00 committed by GitHub
parent 50a51a0c26
commit ce49a63c4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
index.d.ts vendored
View File

@ -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> {