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

2.0.4 • Public • Published

Installation

npm install --save @types/nonogram-solver

Summary

This package contains type definitions for nonogram-solver (https://github.com/thomasr/nonogram-solver).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nonogram-solver.

index.d.ts

declare namespace solve {
    class Puzzle {
        columnHints: number[][];
        height: number;
        rowHints: number[][];
        snapshot: number[];
        width: number;
        readonly isFinished: boolean;
        readonly isSolved: boolean;
        readonly svg: string;

        constructor(data: string | Input);

        import(puzzle: Puzzle): void;
        toJSON(): Required<Input>;
    }

    interface Result {
        puzzle: Puzzle;
        status: State;
    }

    interface Input {
        columns: number[][];
        content?: State[] | undefined;
        rows: number[][];
    }

    type State = 0 | 1 | -1;
}

declare function solve(filename: string): solve.Result;

export = solve;

Additional Details

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

Credits

These definitions were written by Florian Keller.

/@types/nonogram-solver/

    Package Sidebar

    Install

    npm i @types/nonogram-solver

    Weekly Downloads

    2

    Version

    2.0.4

    License

    MIT

    Unpacked Size

    4.03 kB

    Total Files

    5

    Last publish

    Collaborators

    • types