UNPKG

shortest-path

Version:

A TypeScript library that implements the A* (A-star) pathfinding algorithm to find the shortest path on a grid.

12 lines 246 B
export type Grid = (number | null)[][]; export type Position = { x: number; y: number; }; export type GridNode = Position & { g: number; h: number; f: number; parent: GridNode | null; }; //# sourceMappingURL=types.d.ts.map