Skip to content

Update Hooks Class#22229

Draft
7H3LaughingMan wants to merge 2 commits intofoundryvtt:v14-devfrom
7H3LaughingMan:hooks
Draft

Update Hooks Class#22229
7H3LaughingMan wants to merge 2 commits intofoundryvtt:v14-devfrom
7H3LaughingMan:hooks

Conversation

@7H3LaughingMan
Copy link
Copy Markdown
Contributor

  • Adds events
  • Updated on and once so that the last overload takes any[] as the parameters for the callback function. With out this change if you try to create a hook for something that is not explicitly defined you will get an error that no overload matches the call.

@stwlam
Copy link
Copy Markdown
Collaborator

stwlam commented May 4, 2026

We don't trust hooks not explicitly defined (see dice-so-nice-ready.ts), so it should stay unknown.

@7H3LaughingMan 7H3LaughingMan marked this pull request as draft May 4, 2026 18:51
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