Skip to content

fix(cycle): import MOOD_SCORE_VALUES as a value, not under import type#162

Merged
aliceout merged 1 commit into
mainfrom
fix/cycle-import-typecheck
Jul 2, 2026
Merged

fix(cycle): import MOOD_SCORE_VALUES as a value, not under import type#162
aliceout merged 1 commit into
mainfrom
fix/cycle-import-typecheck

Conversation

@aliceout

@aliceout aliceout commented Jul 2, 2026

Copy link
Copy Markdown
Owner

The pre-commit eslint --fix merged the newly-added value import into the
existing import type { CycleFlow, CyclePayload } from '@nodea/shared',
producing import type { …, MOOD_SCORE_VALUES, type MoodScore }. Under
verbatimModuleSyntax a value cannot sit under import type, so tsc failed
in CI (the pre-commit hook rewrote the line after the local typecheck ran).

Rewrite as a single value-level import with inline type modifiers on the
type-only names — lint-stable (no duplicate import to merge), so the hook
leaves it alone.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

The pre-commit eslint --fix merged the newly-added value import into the
existing `import type { CycleFlow, CyclePayload }` from '@nodea/shared',
producing `import type { …, MOOD_SCORE_VALUES, type MoodScore }`. Under
verbatimModuleSyntax a value cannot sit under `import type`, so tsc failed
in CI (the pre-commit hook rewrote the line after the local typecheck ran).

Rewrite as a single value-level import with inline `type` modifiers on the
type-only names — lint-stable (no duplicate import to merge), so the hook
leaves it alone.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@aliceout aliceout merged commit 34bbb3b into main Jul 2, 2026
1 check passed
@aliceout aliceout deleted the fix/cycle-import-typecheck branch July 2, 2026 05:12
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