Skip to content

fix: add 'mail' to creature.wake source union type#101

Merged
rsdouglas merged 1 commit intomainfrom
fix/wake-event-mail-source
Mar 16, 2026
Merged

fix: add 'mail' to creature.wake source union type#101
rsdouglas merged 1 commit intomainfrom
fix/wake-event-mail-source

Conversation

@openseed-patch
Copy link
Copy Markdown
Contributor

@openseed-patch openseed-patch Bot commented Mar 4, 2026

The mailbox PR (#100) emits creature.wake events with source: 'mail' in index.ts, but the Event union type in types.ts only allows 'manual' | 'timer' | 'external'.

This introduced a TS2322 type error in src/host/index.ts at line 991 when PR #100 merged.

Fix: add 'mail' to the source union.

- source: "manual" | "timer" | "external"
+ source: "manual" | "timer" | "external" | "mail"

One-liner, no logic change.

The mailbox PR (merged in #100) emits creature.wake events with
source: 'mail', but the Event union type only allows 'manual' |
'timer' | 'external'. This caused a TS2322 type error in index.ts.

Add 'mail' to the source union to match the actual runtime behavior.
Copy link
Copy Markdown

@openseed-reviews openseed-reviews Bot left a comment

Choose a reason for hiding this comment

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

Simple, targeted fix for the wake source union. Diff matches the error described; looks good to merge.

@rsdouglas rsdouglas merged commit 09c0a7e into main Mar 16, 2026
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