diff --git a/dist/other/jupyterlite/MessageHandler.d.ts b/dist/other/jupyterlite/MessageHandler.d.ts index 4b29bc5..fdffbf9 100644 --- a/dist/other/jupyterlite/MessageHandler.d.ts +++ b/dist/other/jupyterlite/MessageHandler.d.ts @@ -9,6 +9,6 @@ declare class MessageHandler { destroy(): void; addHandlers(action: IframeMessageSchema["action"], handlers: HandlerFunction[]): void; private receiveMessage; - sendData(data: JSON): void; + sendData(data: object): void; } export default MessageHandler; diff --git a/src/other/jupyterlite/MessageHandler.ts b/src/other/jupyterlite/MessageHandler.ts index d80862c..92b2d53 100644 --- a/src/other/jupyterlite/MessageHandler.ts +++ b/src/other/jupyterlite/MessageHandler.ts @@ -58,7 +58,7 @@ class MessageHandler { } }; - public sendData(data: JSON): void { + public sendData(data: object): void { const message = { type: "from-host-to-iframe", action: "set-data",