@ethaks/fvtt-quench
Version:
Types for a Foundry VTT module enabling tests using Mocha and Chai
27 lines (26 loc) • 974 B
TypeScript
import "mocha/mocha.js";
import { Quench } from "./quench";
import "../styles/quench.css";
declare global {
/**
* The singleton instance of the {@link Quench} class, containing the primary public API.
* Initialized in the Quench module's {@link Hooks.StaticCallbacks.init "init"} hook.
*/
var quench: "quenchReady" extends keyof AssumeHookRan ? Quench : Quench | undefined;
namespace Hooks {
interface StaticCallbacks {
/**
* A hook event that fires when Quench is ready to register batches.
*
* @group Initialization
* @see {@link quench!Quench#registerBatch quench.registerBatch}
* @remarks This is called by {@link Hooks.callAll}
* @param quench - The global {@link Quench} instance
*/
quenchReady: (quench: Quench) => void;
}
}
interface BrowserMocha {
_cleanReferencesAfterRun: boolean;
}
}