From 3edcb4d11238f47ecbc286a8535205579856d3f3 Mon Sep 17 00:00:00 2001 From: Danilo Woznica Date: Mon, 23 May 2022 10:04:26 +0100 Subject: [PATCH] fix(sandpack messages): add console type --- sandpack-client/src/types.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sandpack-client/src/types.ts b/sandpack-client/src/types.ts index d2c0ab1f6..22a5f68a4 100644 --- a/sandpack-client/src/types.ts +++ b/sandpack-client/src/types.ts @@ -200,4 +200,12 @@ export type SandpackMessage = BaseSandpackMessage & | { type: "activate-react-devtools"; } + | { + type: "console"; + logs: Array<{ + method: string; + id: string; + data: string[]; + }>; + } );