@types/fast-astar
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Installation

npm install --save @types/fast-astar

Summary

This package contains type definitions for fast-astar (https://github.com/sbfkcel/fast-astar).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fast-astar.

index.d.ts

export class Grid {
    constructor(grid: { col: number; row: number });
    set(coords: [x: number, y: number], value: "value", passable: 0 | 1): void;
}

export class Astar {
    constructor(grid: Grid);
    search(
        originCoords: [x: number, y: number],
        destinationCoords: [x: number, y: number],
        options?: { rightAngle: boolean; optimalResult?: boolean },
    ): undefined | Array<[x: number, y: number]>;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Damien Fayol.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/fast-astar

Weekly Downloads

8

Version

1.0.3

License

MIT

Unpacked Size

3.41 kB

Total Files

5

Last publish

Collaborators

  • types