Interface for a widget, setting up a common ground for the compiler/typescript.

interface IWidget {
    getIframe(): null | HTMLIFrameElement;
    getMessageListeners(): string[];
    sendMessage(message: MessageEnvelope<any>): void;
}

Hierarchy (view full)

Implemented by

Methods

  • Returns null | HTMLIFrameElement