Files
echo-nexus/node_modules/@codesandbox/sandpack-react/dist/components/Console/useSandpackConsole.d.ts
T

16 lines
499 B
TypeScript

import type { SandpackConsoleData } from "./utils/getType";
/**
* It provides an interface to consume the logs from a sandpack client.
*
* @category Hooks
*/
export declare const useSandpackConsole: ({ clientId, maxMessageCount, showSyntaxError, resetOnPreviewRestart, }: {
clientId?: string | undefined;
maxMessageCount?: number | undefined;
showSyntaxError?: boolean | undefined;
resetOnPreviewRestart: boolean;
}) => {
logs: SandpackConsoleData;
reset: () => void;
};