Skip to content

fix(tsc): resolve two lint (tsc tools) errors from mythology catalog PRs#2427

Merged
AceHack merged 1 commit into
mainfrom
fix/tsc-lint-mythology-candidate-schema
May 10, 2026
Merged

fix(tsc): resolve two lint (tsc tools) errors from mythology catalog PRs#2427
AceHack merged 1 commit into
mainfrom
fix/tsc-lint-mythology-candidate-schema

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 10, 2026

Summary

  • TS2322 in tools/mythology-resonance/candidate-schema.ts:52: f2Strength: 'strong-but-looser' is not assignable to the union 'weak' | 'moderate' | 'strong'. Changed to 'moderate'; qualifier moved into the notes field.
  • TS2375 in tools/resonance/mythology-catalog-schema.ts: explicit sourceMemory: undefined violates exactOptionalPropertyTypes: true. Removed the line — omitting an optional property is correct; explicitly setting to undefined is not.

Both errors were introduced in #2423 / #2424 (mythology catalog PRs) and first surfaced by the lint (tsc tools) CI job running against PR #2426's merge context. #2426 auto-merged before the fix could land on its branch.

Test plan

  • bun --bun tsc --noEmit -p tsconfig.json — 0 errors after fix (verified locally)
  • No logic change: 'moderate' is semantically accurate (explicitly described as "strong-but-looser" = below strong); qualifier preserved in notes
  • sourceMemory omission matches all other catalog entries that lack a source memory file

🤖 Generated with Claude Code

… catalog PRs

TS2322 (candidate-schema.ts:52): f2Strength 'strong-but-looser' not assignable
to union 'weak'|'moderate'|'strong' — change to 'moderate'; qualifier moved
to notes field.

TS2375 (mythology-catalog-schema.ts:451): explicit `sourceMemory: undefined`
violates exactOptionalPropertyTypes=true — remove line; omission is correct
for absent optional properties.

Both errors pre-existed in main via #2423/#2424; first surfaced by tsc lint
running against PR #2426's merge context.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 10, 2026 06:15
@AceHack AceHack enabled auto-merge (squash) May 10, 2026 06:15
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes two TypeScript type-check issues introduced by prior mythology-catalog PRs, unblocking the lint (tsc tools) CI job while preserving the intended semantics of the seed data.

Changes:

  • Adjust heimdallrSeed.threeFilter.f2Strength to a valid union member ("moderate") and move the prior qualifier into notes.
  • Remove sourceMemory: undefined from a seed catalog entry to comply with exactOptionalPropertyTypes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tools/resonance/mythology-catalog-schema.ts Removes an explicit undefined optional property assignment that violates exactOptionalPropertyTypes.
tools/mythology-resonance/candidate-schema.ts Updates the Heimdallr seed’s f2Strength to a valid literal and preserves nuance in notes.

Comment thread tools/mythology-resonance/candidate-schema.ts
@AceHack AceHack merged commit f41e2e6 into main May 10, 2026
29 checks passed
@AceHack AceHack deleted the fix/tsc-lint-mythology-candidate-schema branch May 10, 2026 06:18
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.

2 participants