Skip to content

Commit

Permalink
fix(sandpack messages): add console type
Browse files Browse the repository at this point in the history
  • Loading branch information
danilowoz committed May 23, 2022
1 parent 8fdc925 commit 3edcb4d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sandpack-client/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,12 @@ export type SandpackMessage = BaseSandpackMessage &
| {
type: "activate-react-devtools";
}
| {
type: "console";
logs: Array<{
method: string;

This comment has been minimized.

Copy link
@harish-sethuraman

harish-sethuraman May 23, 2022

'log' | 'debug'| 'info' | 'warn' | 'error' | 'table' | 'clear' | 'time' | 'timeEnd' | 'count'| 'assert';

the method should have been this instead of string? the build is failing in https://github.com/reactjs/reactjs.org/runs/6557485647?check_suite_focus=true

id: string;
data: string[];
}>;
}
);

0 comments on commit 3edcb4d

Please sign in to comment.