@illandril/foundryvtt-types
Version:
Type definitions for the Foundry VTT client, used by Illandril's modules
20 lines (17 loc) • 653 B
TypeScript
import type { ClientDocument } from './ClientDocument';
declare global {
class TokenDocument extends foundry.documents.BaseToken implements ClientDocument {
isOwner: ClientDocument['isOwner'];
hasPlayerOwner: ClientDocument['hasPlayerOwner'];
visible: ClientDocument['visible'];
prepareData: ClientDocument['prepareData'];
prepareDerivedData: ClientDocument['prepareDerivedData'];
render: ClientDocument['render'];
update: ClientDocument['update'];
get actor(): Actor;
get actorLink(): boolean;
get object(): Token | null | undefined;
get inCombat(): boolean;
get combatant(): Combatant | null;
}
}