@deephaven/jsapi-types
Advanced tools
Comparing version 0.53.1-beta.4 to 0.53.1-deephaven-layout.11
@@ -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; | ||
} | ||
@@ -292,10 +282,10 @@ export interface FigureDescriptor { | ||
}; | ||
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; | ||
} | ||
@@ -302,0 +292,0 @@ export interface FigureDataUpdatedEvent { |
{ | ||
"name": "@deephaven/jsapi-types", | ||
"version": "0.53.1-beta.4+d5b3b485", | ||
"version": "0.53.1-deephaven-layout.11+b21ac6f5", | ||
"description": "Deephaven JSAPI Types", | ||
@@ -30,3 +30,3 @@ "author": "Deephaven Data Labs LLC", | ||
}, | ||
"gitHead": "d5b3b485dfc95248bdd1d664152c6c1ab288720a" | ||
"gitHead": "b21ac6f5e9cfca86cb204c8e80d5dd0295bb3c33" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
108286
935