@heroiclands/sohl-types
v0.0.1
Published
Type declarations for the Song of Heroic Lands (SoHL) Foundry VTT system. Types only — runtime binds through the live `sohl` global.
Downloads
76
Maintainers
Readme
@heroiclands/sohl-types
Type declarations for the Song of Heroic Lands (SoHL) system for Foundry VTT — for authoring macros and variant/extension modules in TypeScript.
This package is types-only. It declares no runtime values, and you never
import SoHL's runtime from it. Foundry loads the SoHL system, and your code
reaches every value through the live sohl global:
// dev-time: type for the annotation, from this package
import type { ValueModifier } from "@heroiclands/sohl-types";
// runtime: value from the global that Foundry loaded — never an import
const mod: ValueModifier = new sohl.entity.ValueModifier(data, { parent });Install
npm install -D @heroiclands/sohl-typesReference it in your module's tsconfig.json:
{
"compilerOptions": {
"types": ["@heroiclands/sohl-types"]
}
}Status:
0.0.xis a bootstrap placeholder. The full generated declarations — the Logic/Data interfaces and thesohl.*namespace tree — land in a later release. See the SoHL repository for progress.
License
GPL-3.0-or-later — see the SoHL repository.
