@fgv/ts-sudoku-lib 5.1.0-16 → 5.1.0-18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,7 +48,7 @@ export class PuzzleCollection {
48
48
  }
49
49
  /**
50
50
  * Creates a new puzzle from a JSON file.
51
- * @param path - path to the JSON file to be loaded.
51
+ * @param file - file item to be loaded.
52
52
  * @returns `Success` with the resulting {@link PuzzleCollection | PuzzleCollection}
53
53
  * or `Failure` with details if an error occurs.
54
54
  */
@@ -33,7 +33,7 @@ import { PuzzleState } from './puzzleState';
33
33
  export class Puzzle {
34
34
  /**
35
35
  * Constructs a new puzzle state.
36
- * @param puzzle - {@Link IPuzzleDefinition | Puzzle definition} from which this puzzle state
36
+ * @param puzzle - {@link IPuzzleDefinition | Puzzle definition} from which this puzzle state
37
37
  * is to be initialized.
38
38
  */
39
39
  constructor(puzzle, extraCages) {
@@ -126,7 +126,7 @@ export declare class Cage implements ICage {
126
126
  }
127
127
 
128
128
  /**
129
- * Nominal identifier for a single {@Link ICage | cage} in a {@link PuzzleSession | puzzle}.
129
+ * Nominal identifier for a single {@link ICage | cage} in a {@link PuzzleSession | puzzle}.
130
130
  * @public
131
131
  */
132
132
  export declare type CageId = Brand<string, 'CageId'>;
@@ -138,7 +138,7 @@ export declare type CageId = Brand<string, 'CageId'>;
138
138
  declare const cageId: Converter<CageId>;
139
139
 
140
140
  /**
141
- * Identifies the type of a {@Link ICage | cage}.
141
+ * Identifies the type of a {@link ICage | cage}.
142
142
  * @public
143
143
  */
144
144
  export declare type CageType = 'row' | 'column' | 'section' | 'x' | 'killer';
@@ -170,7 +170,7 @@ export declare class Cell implements ICellInit, ICell {
170
170
  declare type CellAction = 'set-value' | 'eliminate-candidate' | 'add-candidate' | 'highlight';
171
171
 
172
172
  /**
173
- * Nominal identifier for a single {@Link ICell | cell} in a {@link PuzzleSession | puzzle}.
173
+ * Nominal identifier for a single {@link ICell | cell} in a {@link PuzzleSession | puzzle}.
174
174
  * @public
175
175
  */
176
176
  export declare type CellId = Brand<string, 'CellId'>;
@@ -763,7 +763,7 @@ export declare interface ICell {
763
763
  */
764
764
  readonly col: number;
765
765
  /**
766
- * All of the {@Link ICage | cages} to which this cell belongs.
766
+ * All of the {@link ICage | cages} to which this cell belongs.
767
767
  */
768
768
  readonly cages: readonly ICage[];
769
769
  /**
@@ -788,7 +788,7 @@ declare interface ICellAction {
788
788
  }
789
789
 
790
790
  /**
791
- * The contents of a single {@Link ICell | cell} in a {@link PuzzleSession | puzzle}.
791
+ * The contents of a single {@link ICell | cell} in a {@link PuzzleSession | puzzle}.
792
792
  * @public
793
793
  */
794
794
  export declare interface ICellContents {
@@ -1141,7 +1141,7 @@ declare interface IRelevantCells {
1141
1141
  }
1142
1142
 
1143
1143
  /**
1144
- * The row/column coordinate of a single {@Link ICell | cell} in a {@link PuzzleSession | puzzle}.
1144
+ * The row/column coordinate of a single {@link ICell | cell} in a {@link PuzzleSession | puzzle}.
1145
1145
  * @public
1146
1146
  */
1147
1147
  export declare interface IRowColumn {
@@ -1391,7 +1391,7 @@ export declare class Puzzle {
1391
1391
  protected readonly _cells: Map<CellId, Cell>;
1392
1392
  /**
1393
1393
  * Constructs a new puzzle state.
1394
- * @param puzzle - {@Link IPuzzleDefinition | Puzzle definition} from which this puzzle state
1394
+ * @param puzzle - {@link IPuzzleDefinition | Puzzle definition} from which this puzzle state
1395
1395
  * is to be initialized.
1396
1396
  */
1397
1397
  protected constructor(puzzle: IPuzzleDefinition, extraCages?: [CageId, Cage][]);
@@ -1464,7 +1464,7 @@ export declare class PuzzleCollection {
1464
1464
  static create(from: Files.Model.IPuzzlesFile): Result<PuzzleCollection>;
1465
1465
  /**
1466
1466
  * Creates a new puzzle from a JSON file.
1467
- * @param path - path to the JSON file to be loaded.
1467
+ * @param file - file item to be loaded.
1468
1468
  * @returns `Success` with the resulting {@link PuzzleCollection | PuzzleCollection}
1469
1469
  * or `Failure` with details if an error occurs.
1470
1470
  */
@@ -22,7 +22,7 @@ export declare class PuzzleCollection {
22
22
  static create(from: Files.Model.IPuzzlesFile): Result<PuzzleCollection>;
23
23
  /**
24
24
  * Creates a new puzzle from a JSON file.
25
- * @param path - path to the JSON file to be loaded.
25
+ * @param file - file item to be loaded.
26
26
  * @returns `Success` with the resulting {@link PuzzleCollection | PuzzleCollection}
27
27
  * or `Failure` with details if an error occurs.
28
28
  */
@@ -87,7 +87,7 @@ class PuzzleCollection {
87
87
  }
88
88
  /**
89
89
  * Creates a new puzzle from a JSON file.
90
- * @param path - path to the JSON file to be loaded.
90
+ * @param file - file item to be loaded.
91
91
  * @returns `Success` with the resulting {@link PuzzleCollection | PuzzleCollection}
92
92
  * or `Failure` with details if an error occurs.
93
93
  */
@@ -1,21 +1,21 @@
1
1
  import { Brand } from '@fgv/ts-utils';
2
2
  /**
3
- * Nominal identifier for a single {@Link ICell | cell} in a {@link PuzzleSession | puzzle}.
3
+ * Nominal identifier for a single {@link ICell | cell} in a {@link PuzzleSession | puzzle}.
4
4
  * @public
5
5
  */
6
6
  export type CellId = Brand<string, 'CellId'>;
7
7
  /**
8
- * Nominal identifier for a single {@Link ICage | cage} in a {@link PuzzleSession | puzzle}.
8
+ * Nominal identifier for a single {@link ICage | cage} in a {@link PuzzleSession | puzzle}.
9
9
  * @public
10
10
  */
11
11
  export type CageId = Brand<string, 'CageId'>;
12
12
  /**
13
- * Identifies the type of a {@Link ICage | cage}.
13
+ * Identifies the type of a {@link ICage | cage}.
14
14
  * @public
15
15
  */
16
16
  export type CageType = 'row' | 'column' | 'section' | 'x' | 'killer';
17
17
  /**
18
- * The row/column coordinate of a single {@Link ICell | cell} in a {@link PuzzleSession | puzzle}.
18
+ * The row/column coordinate of a single {@link ICell | cell} in a {@link PuzzleSession | puzzle}.
19
19
  * @public
20
20
  */
21
21
  export interface IRowColumn {
@@ -23,7 +23,7 @@ export interface IRowColumn {
23
23
  col: number;
24
24
  }
25
25
  /**
26
- * The contents of a single {@Link ICell | cell} in a {@link PuzzleSession | puzzle}.
26
+ * The contents of a single {@link ICell | cell} in a {@link PuzzleSession | puzzle}.
27
27
  * @public
28
28
  */
29
29
  export interface ICellContents {
@@ -50,7 +50,7 @@ export interface ICell {
50
50
  */
51
51
  readonly col: number;
52
52
  /**
53
- * All of the {@Link ICage | cages} to which this cell belongs.
53
+ * All of the {@link ICage | cages} to which this cell belongs.
54
54
  */
55
55
  readonly cages: readonly ICage[];
56
56
  /**
@@ -54,7 +54,7 @@ export declare class Puzzle {
54
54
  protected readonly _cells: Map<CellId, Cell>;
55
55
  /**
56
56
  * Constructs a new puzzle state.
57
- * @param puzzle - {@Link IPuzzleDefinition | Puzzle definition} from which this puzzle state
57
+ * @param puzzle - {@link IPuzzleDefinition | Puzzle definition} from which this puzzle state
58
58
  * is to be initialized.
59
59
  */
60
60
  protected constructor(puzzle: IPuzzleDefinition, extraCages?: [CageId, Cage][]);
@@ -36,7 +36,7 @@ const puzzleState_1 = require("./puzzleState");
36
36
  class Puzzle {
37
37
  /**
38
38
  * Constructs a new puzzle state.
39
- * @param puzzle - {@Link IPuzzleDefinition | Puzzle definition} from which this puzzle state
39
+ * @param puzzle - {@link IPuzzleDefinition | Puzzle definition} from which this puzzle state
40
40
  * is to be initialized.
41
41
  */
42
42
  constructor(puzzle, extraCages) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fgv/ts-sudoku-lib",
3
- "version": "5.1.0-16",
3
+ "version": "5.1.0-18",
4
4
  "description": "Sudoku rules library",
5
5
  "main": "lib/index.js",
6
6
  "types": "dist/ts-sudoku-lib.d.ts",
@@ -44,14 +44,14 @@
44
44
  "@rushstack/heft-jest-plugin": "1.2.6",
45
45
  "eslint-plugin-tsdoc": "~0.5.2",
46
46
  "typedoc": "~0.28.16",
47
- "@fgv/heft-dual-rig": "5.1.0-16",
48
- "@fgv/ts-utils": "5.1.0-16",
49
- "@fgv/ts-utils-jest": "5.1.0-16",
50
- "@fgv/ts-json-base": "5.1.0-16",
51
- "@fgv/typedoc-compact-theme": "5.1.0-16"
47
+ "@fgv/heft-dual-rig": "5.1.0-18",
48
+ "@fgv/typedoc-compact-theme": "5.1.0-18",
49
+ "@fgv/ts-utils-jest": "5.1.0-18",
50
+ "@fgv/ts-utils": "5.1.0-18",
51
+ "@fgv/ts-json-base": "5.1.0-18"
52
52
  },
53
53
  "peerDependencies": {
54
- "@fgv/ts-utils": "5.1.0-16"
54
+ "@fgv/ts-utils": "5.1.0-18"
55
55
  },
56
56
  "exports": {
57
57
  ".": {