@deephaven/jsapi-types
Advanced tools
Comparing version 0.53.1-layout-manager.4 to 0.54.0
@@ -70,12 +70,2 @@ export default dh; | ||
} | ||
export interface JsWidget extends Evented { | ||
getDataAsBase64: () => string; | ||
getDataAsU8: () => Uint8Array; | ||
getDataAsString: () => string; | ||
exportedObjects: { | ||
fetch: () => Promise<Table | Figure | TreeTable | JsWidget>; | ||
}[]; | ||
sendMessage: (message: string | ArrayBuffer | ArrayBufferView, references?: unknown[]) => void; | ||
close: () => void; | ||
} | ||
export interface LogItem { | ||
@@ -161,6 +151,6 @@ micros: number; | ||
export interface Evented { | ||
addEventListener: (eventType: string, listener: EventListener) => RemoverFn; | ||
addEventListener: <T>(eventType: string, listener: EventListener<T>) => RemoverFn; | ||
nextEvent: (eventType: string, timeoutInMillis?: number) => Promise<CustomEvent>; | ||
hasListeners: (eventType: string) => boolean; | ||
removeEventListener: (eventType: string, listener: EventListener) => boolean; | ||
removeEventListener: <T>(eventType: string, listener: EventListener<T>) => boolean; | ||
} | ||
@@ -185,4 +175,4 @@ export interface Plot { | ||
} | ||
export interface EventListener { | ||
(event: CustomEvent): void; | ||
export interface EventListener<T> { | ||
(event: CustomEvent<T>): void; | ||
} | ||
@@ -276,2 +266,3 @@ export interface FigureDescriptor { | ||
readonly charts: Chart[]; | ||
readonly errors: string[]; | ||
/** | ||
@@ -293,10 +284,10 @@ * Subscribes to all series in this figure. | ||
}; | ||
export interface Widget { | ||
export interface Widget extends Evented { | ||
readonly EVENT_MESSAGE: string; | ||
addEventListener: (type: string, listener: (event: unknown) => void) => () => void; | ||
getDataAsBase64: () => string; | ||
getDataAsString: () => string; | ||
getDataAsU8: () => Uint8Array; | ||
sendMessage: (message: string, references?: never[]) => void; | ||
sendMessage: (message: string | ArrayBuffer | ArrayBufferView, references?: never[]) => void; | ||
exportedObjects: WidgetExportedObject[]; | ||
close: () => void; | ||
} | ||
@@ -303,0 +294,0 @@ export interface FigureDataUpdatedEvent { |
{ | ||
"name": "@deephaven/jsapi-types", | ||
"version": "0.53.1-layout-manager.4+35156012", | ||
"version": "0.54.0", | ||
"description": "Deephaven JSAPI Types", | ||
@@ -30,3 +30,3 @@ "author": "Deephaven Data Labs LLC", | ||
}, | ||
"gitHead": "35156012036ec087dbc366e5439b85ff6d1f71ff" | ||
"gitHead": "724c84e40aa8a716f10f39c33019a5301bfd5dab" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
0
108359
936