Skip to content

@vttforge/types / VttforgeClass

Type Alias: VttforgeClass<Added, Statics, Foundry> ​

VttforgeClass<Added, Statics, Foundry> = Statics & (...args) => Added & Foundry

A class this SDK built on top of a Foundry one.

Added is what the factory contributes; Foundry is the part of Foundry's own surface the factory stands on. Anything outside both is a cast; see the note at the top of this file for why that is the point.

Foundry defaults to nothing rather than to the application surface. A TypeDataModel is not an application, and defaulting the other way handed data models a render and a close they do not have.

Type Parameters ​

Added ​

Added

Statics ​

Statics = unknown

Foundry ​

Foundry = unknown

MIT licensed.