In the index.d.ts file, topologicalSort is defined with sourceNodes: NodeId[], which doesn't allow for not passing in any source nodes. This makes following the examples impossible, and as far as I can tell, there's no easy way to actually make it run without the source nodes being passed in without chaning the index.d.ts to be sourceNodes?[]
In the
index.d.ts
file, topologicalSort is defined withsourceNodes: NodeId[]
, which doesn't allow for not passing in any source nodes. This makes following the examples impossible, and as far as I can tell, there's no easy way to actually make it run without the source nodes being passed in without chaning theindex.d.ts
to besourceNodes?[]