Skip to content

@vttforge/core / HookCallback

Type Alias: HookCallback<Args>

HookCallback<Args> = (...args) => unknown | Promise<unknown>

Minimal type-only contracts for the Foundry v14+ globals VTTForge core touches.

Intentionally narrow. The Foundry members the bases stand on are in @vttforge/types; built on top of fvtt-types. We mirror just the surface we use so the core package compiles without pulling in fvtt-types' git-SHA dependency.

Every consumer is expected to run inside the Foundry runtime; we read these via globalThis and never bundle Foundry itself.

Type Parameters

Args

Args extends readonly unknown[] = readonly unknown[]

Parameters

args

...Args

Returns

unknown | Promise<unknown>

MIT licensed.