Skip to content

fix: cast status check to avoid TS2367 narrowing error#552

Merged
itskai-dev merged 1 commit intomainfrom
kai/fix-ts-todo-check
Mar 1, 2026
Merged

fix: cast status check to avoid TS2367 narrowing error#552
itskai-dev merged 1 commit intomainfrom
kai/fix-ts-todo-check

Conversation

@itskai-dev
Copy link
Collaborator

Docker publish is broken — TypeScript narrowing error from PR #549. The early return for 'todo' on line 237 narrows the type, making the safety check on line 283 a TS error. One-char fix: cast to string.

The early return for 'todo' on line 237 narrows the type, making
the redundant safety check on line 283 a TS error. Cast to string
to preserve the defensive check without breaking the build.
@itskai-dev itskai-dev requested a review from ryancampbell as a code owner March 1, 2026 00:28
@itskai-dev itskai-dev merged commit 827335b into main Mar 1, 2026
9 checks passed
@itskai-dev itskai-dev deleted the kai/fix-ts-todo-check branch March 1, 2026 00:28
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