@vttforge/types
v0.11.1
Published
The TypeScript surface shared across VTTForge packages: the Foundry members the sheet and application bases stand on.
Maintainers
Readme
@vttforge/types
The TypeScript types shared across VTTForge packages.
bun add -D @vttforge/typesWhat is in it
The Foundry members the base factories in @vttforge/core stand on:
| Export | What it is |
|---|---|
| ApplicationV2Members | The ApplicationV2 members a sheet or application built on the SDK can rely on: element, title, rendered, options, render, close, _prepareContext, _onRender, _onFirstRender |
| DocumentSheetV2Members | The above plus document (typed unknown, yours to narrow) and isEditable |
| VttforgeClass<Added, Statics, Foundry> | The shape a base factory returns: what the SDK adds, the statics, and the part of Foundry it stands on |
The list is short on purpose: every member on it is one a real consumer used. Reaching a member that is not here takes a cast.
@vttforge/core depends on this package and re-exports the same names, so a system that only imports from core does not need to add it. Import from here when you write types that stand on their own, such as a shared interface for a family of sheets.
