@illandril/foundryvtt-types
Version:
Type definitions for the Foundry VTT client, used by Illandril's modules
22 lines (19 loc) • 550 B
TypeScript
declare global {
namespace foundry {
namespace documents {
type BaseCombatantFields = {
defeated: boolean;
hidden: boolean;
initiative: number | null | undefined;
name: string;
};
class BaseCombatant extends foundry.abstract.Document {
get defeated(): BaseCombatantFields['defeated'];
get hidden(): BaseCombatantFields['hidden'];
get initiative(): BaseCombatantFields['initiative'];
get name(): BaseCombatantFields['name'];
}
}
}
}
export type {};