12 lines
284 B
TypeScript
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;
|
|
};
|