@illandril/foundryvtt-types
Version:
Type definitions for the Foundry VTT client, used by Illandril's modules
36 lines (31 loc) • 1.04 kB
TypeScript
import type { ClientDocument } from './ClientDocument';
declare global {
class ChatMessage extends foundry.documents.BaseChatMessage implements ClientDocument {
isOwner: ClientDocument['isOwner'];
hasPlayerOwner: ClientDocument['hasPlayerOwner'];
visible: ClientDocument['visible'];
prepareData: ClientDocument['prepareData'];
prepareDerivedData: ClientDocument['prepareDerivedData'];
render: ClientDocument['render'];
update: ClientDocument['update'];
static getSpeaker(options?: { scene?: Scene; actor?: Actor; token?: TokenDocument; alias?: string }): SpeakerType;
static create(data: {
speaker: {
alias?: string;
actor?: Actor;
token?: TokenDocument;
scene?: Scene;
};
content?: string;
whisper?: string[];
flavor?: string;
}): ChatMessage;
get alias(): string;
get isAuthor(): boolean;
get isContentVisible(): boolean;
get isRoll(): boolean;
}
interface Window {
ChatMessage: typeof ChatMessage;
}
}