Skip to content

chore(strict): P31 contract-audit ts-check + typedefs (DOM tsconfig)#32

Merged
lidge-jun merged 1 commit into
mainfrom
chore/strict-migration-p31
May 5, 2026
Merged

chore(strict): P31 contract-audit ts-check + typedefs (DOM tsconfig)#32
lidge-jun merged 1 commit into
mainfrom
chore/strict-migration-p31

Conversation

@lidge-jun
Copy link
Copy Markdown
Owner

VERDICT-B per-file ts-check on web-ai/contract-audit.mjs (30 lines). All deps already DOM-checked: vendor-editor-contract (P30), ax-snapshot.

Changes: // @ts-check, AuditDrift/AuditResult typedefs, JSDoc on single export. snapshot.refs is typed as Record<string, InteractiveRef> by ax-snapshot, but code calls .filter on it (pre-existing mismatch). Preserved via inline any JSDoc-only.cast

No runtime change. Control flow byte-identical.

Gates: tsc -p tsconfig.checkjs-dom.json OK, tsc -p tsconfig.checkjs.json OK, tsc --noEmit OK, check:strict-baseline OK.

Annotate web-ai/contract-audit.mjs (30 lines) with // @ts-check, AuditDrift
and AuditResult typedefs, JSDoc on the single export.

snapshot.refs is typed as Record<string, InteractiveRef> by ax-snapshot,
but the original code calls .filter on it. Preserved exactly via inline
`/** @type {any} */ (...)` cast (JSDoc-only, no runtime change).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lidge-jun lidge-jun merged commit 9d72c5f into main May 5, 2026
2 checks passed
@lidge-jun lidge-jun deleted the chore/strict-migration-p31 branch May 6, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant