2.0.4 • Published 6 months ago
@types/nonogram-solver v2.0.4
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
// Type definitions for nonogram-solver 2.0
// Project: https://github.com/thomasr/nonogram-solver
// Definitions by: Florian Keller <https://github.com/ffflorian>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
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: Thu, 08 Jul 2021 18:51:37 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Florian Keller.