Files
echo-nexus/node_modules/@codesandbox/sandpack-react/dist/hooks/useActiveCode.d.ts
T

12 lines
284 B
TypeScript

/**
* This returns the current state of the active file
* and a method to update its content.
*
* @category Hooks
*/
export declare const useActiveCode: () => {
code: string;
readOnly: boolean;
updateCode: (newCode: string, shouldUpdatePreview?: boolean) => void;
};