Skip to content

Commit

Permalink
udpate: add correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Apr 4, 2024
1 parent 254405e commit 7da1e83
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion dist/other/jupyterlite/JupyterLiteSession.d.ts
@@ -1,10 +1,14 @@
import { IframeMessageSchema } from "@mat3ra/esse/dist/js/types";
import React from "react";
import IframeToFromHostMessageHandler from "../iframe-messaging/IframeToFromHostMessageHandler";
interface JupyterLiteSessionProps {
originURL: string;
defaultNotebookPath?: string;
iframeId: string;
messageHandlerConfigs?: any;
messageHandlerConfigs?: {
action: IframeMessageSchema["action"];
handlers: ((...args: any) => void)[];
}[];
}
declare class JupyterLiteSession extends React.Component<JupyterLiteSessionProps> {
static defaultProps: JupyterLiteSessionProps;
Expand Down
6 changes: 5 additions & 1 deletion src/other/jupyterlite/JupyterLiteSession.tsx
@@ -1,3 +1,4 @@
import { IframeMessageSchema } from "@mat3ra/esse/dist/js/types";
import React from "react";

import IframeToFromHostMessageHandler from "../iframe-messaging/IframeToFromHostMessageHandler";
Expand All @@ -6,7 +7,10 @@ interface JupyterLiteSessionProps {
originURL: string;
defaultNotebookPath?: string;
iframeId: string;
messageHandlerConfigs?: any;
messageHandlerConfigs?: {
action: IframeMessageSchema["action"];
handlers: ((...args: any) => void)[];
}[];
}

const defaultProps: JupyterLiteSessionProps = {
Expand Down

0 comments on commit 7da1e83

Please sign in to comment.