@logic-pad/core 0.4.1 → 0.4.2
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.
|
@@ -1241,9 +1241,9 @@ declare global {
|
|
|
1241
1241
|
*/
|
|
1242
1242
|
link: string;
|
|
1243
1243
|
/**
|
|
1244
|
-
* The difficulty of the puzzle, from
|
|
1244
|
+
* The difficulty of the puzzle, from 0 to 10. (required)
|
|
1245
1245
|
*
|
|
1246
|
-
* 6-10 represent star difficulties.
|
|
1246
|
+
* 0 represents an unrated puzzle, 6-10 represent star difficulties.
|
|
1247
1247
|
*/
|
|
1248
1248
|
difficulty: number;
|
|
1249
1249
|
};
|
package/dist/data/puzzle.d.ts
CHANGED
|
@@ -18,9 +18,9 @@ export type PuzzleMetadata = {
|
|
|
18
18
|
*/
|
|
19
19
|
link: string;
|
|
20
20
|
/**
|
|
21
|
-
* The difficulty of the puzzle, from
|
|
21
|
+
* The difficulty of the puzzle, from 0 to 10. (required)
|
|
22
22
|
*
|
|
23
|
-
* 6-10 represent star difficulties.
|
|
23
|
+
* 0 represents an unrated puzzle, 6-10 represent star difficulties.
|
|
24
24
|
*/
|
|
25
25
|
difficulty: number;
|
|
26
26
|
};
|
package/dist/data/puzzle.js
CHANGED
|
@@ -6,7 +6,7 @@ export const MetadataSchema = z
|
|
|
6
6
|
author: z.string().min(1),
|
|
7
7
|
description: z.string(),
|
|
8
8
|
link: z.string(),
|
|
9
|
-
difficulty: z.number().int().min(
|
|
9
|
+
difficulty: z.number().int().min(0).max(10),
|
|
10
10
|
})
|
|
11
11
|
.strict();
|
|
12
12
|
export const PuzzleSchema = z
|
|
@@ -15,7 +15,7 @@ export const PuzzleSchema = z
|
|
|
15
15
|
author: z.string().min(1),
|
|
16
16
|
description: z.string(),
|
|
17
17
|
link: z.string(),
|
|
18
|
-
difficulty: z.number().int().min(
|
|
18
|
+
difficulty: z.number().int().min(0).max(10),
|
|
19
19
|
grid: z.instanceof(GridData),
|
|
20
20
|
solution: z.instanceof(GridData).nullable(),
|
|
21
21
|
})
|