@boxxy/closeout 0.2.0 → 0.2.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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { AttemptRow,
|
|
2
|
-
export declare function findLatestDesign(history: readonly AttemptRow[]):
|
|
1
|
+
import type { AttemptRow, Design } from '@boxxy/model';
|
|
2
|
+
export declare function findLatestDesign(history: readonly AttemptRow[]): Design | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boxxy/closeout",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "boxxy's phase kinds: the input, the close-out parser and the settle rule of triage, design, build and review",
|
|
5
5
|
"homepage": "https://github.com/zgeoff/boxxy/tree/main/modules/closeout#readme",
|
|
6
6
|
"bugs": "https://github.com/zgeoff/boxxy/issues",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"typecheck": "tsrs --noEmit"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@boxxy/model": "0.2.
|
|
34
|
+
"@boxxy/model": "0.2.1",
|
|
35
35
|
"tiny-invariant": "1.3.3",
|
|
36
36
|
"ts-pattern": "5.9.2",
|
|
37
37
|
"zod": "4.6.7"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@boxxy/planning": "0.2.
|
|
41
|
-
"@boxxy/rules": "0.2.
|
|
40
|
+
"@boxxy/planning": "0.2.1",
|
|
41
|
+
"@boxxy/rules": "0.2.1",
|
|
42
42
|
"@faker-js/faker": "10.6.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { AttemptRow,
|
|
1
|
+
import type { AttemptRow, Design } from '@boxxy/model';
|
|
2
2
|
import { designCloseOutSchema } from '@boxxy/model';
|
|
3
3
|
import { findLatestCloseOut } from './find-latest-close-out.ts';
|
|
4
4
|
|
|
5
|
-
export function findLatestDesign(history: readonly AttemptRow[]):
|
|
5
|
+
export function findLatestDesign(history: readonly AttemptRow[]): Design | null {
|
|
6
6
|
const closeOut = findLatestCloseOut(history, 'design', designCloseOutSchema);
|
|
7
7
|
|
|
8
8
|
return closeOut?.result.kind === 'designed' ? closeOut.result.design : null;
|