@scrabble-solver/types 2.10.11 → 2.11.1
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.
- package/build/Bonus.d.ts +2 -1
- package/package.json +3 -3
- package/src/Bonus.ts +3 -1
package/build/Bonus.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BONUS_CHARACTER, BONUS_WORD } from '@scrabble-solver/constants';
|
|
1
2
|
import BonusJson from './BonusJson';
|
|
2
3
|
import BonusValue from './BonusValue';
|
|
3
4
|
import Cell from './Cell';
|
|
@@ -5,7 +6,7 @@ import Config from './Config';
|
|
|
5
6
|
declare abstract class Bonus {
|
|
6
7
|
readonly multiplier: number;
|
|
7
8
|
readonly score: number | undefined;
|
|
8
|
-
abstract readonly type:
|
|
9
|
+
abstract readonly type: typeof BONUS_CHARACTER | typeof BONUS_WORD;
|
|
9
10
|
readonly x: number;
|
|
10
11
|
readonly y: number;
|
|
11
12
|
constructor({ multiplier, score, x, y }: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrabble-solver/types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.1",
|
|
4
4
|
"description": "Scrabble Solver 2 - Types",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"clean:force": "npm run clean && rimraf package-lock.json"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@scrabble-solver/constants": "^2.
|
|
27
|
+
"@scrabble-solver/constants": "^2.11.1"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "8dea3cee4e6f902ab8d1ae2339dd1e48b11db39d"
|
|
30
30
|
}
|
package/src/Bonus.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { BONUS_CHARACTER, BONUS_WORD } from '@scrabble-solver/constants';
|
|
2
|
+
|
|
1
3
|
import BonusJson from './BonusJson';
|
|
2
4
|
import BonusValue from './BonusValue';
|
|
3
5
|
import Cell from './Cell';
|
|
@@ -8,7 +10,7 @@ abstract class Bonus {
|
|
|
8
10
|
|
|
9
11
|
public readonly score: number | undefined;
|
|
10
12
|
|
|
11
|
-
public abstract readonly type:
|
|
13
|
+
public abstract readonly type: typeof BONUS_CHARACTER | typeof BONUS_WORD;
|
|
12
14
|
|
|
13
15
|
public readonly x: number;
|
|
14
16
|
|