diff --git a/packages/jsapi-types/src/dh.types.ts b/packages/jsapi-types/src/dh.types.ts index 9b889f865f..d8cd8bf65a 100644 --- a/packages/jsapi-types/src/dh.types.ts +++ b/packages/jsapi-types/src/dh.types.ts @@ -336,6 +336,12 @@ export interface Figure extends Evented { close(): void; } +export type WidgetExportedObject = { + type: string; + fetch: () => Promise; + close: () => void; +}; + export interface Widget { readonly EVENT_MESSAGE: string; @@ -344,7 +350,10 @@ export interface Widget { listener: (event: unknown) => void ) => () => void; getDataAsBase64(): string; + getDataAsString(): string; + getDataAsU8(): Uint8Array; sendMessage: (message: string, references?: never[]) => void; + exportedObjects: WidgetExportedObject[]; } export interface FigureDataUpdatedEvent {