@readable-js/react-codemirror
Version:
React component for ReadableJS
14 lines (13 loc) • 637 B
TypeScript
import { ViewUpdate, ViewPlugin, DecorationSet } from "@codemirror/view";
import { EditorView } from '@codemirror/basic-setup';
import { DefaultSpyParams } from '@readable-js/core';
/**
*
* @param getCallStack
* @param currentStep
* @param skipEvaluation when forcing update with reconfigure, you don't want to execute the code again.
*/
export declare const readablePlugin: (getCallStack: (view: EditorView, skipEvaluation?: boolean | undefined) => DefaultSpyParams[], currentStep: number, skipEvaluation?: boolean | undefined) => ViewPlugin<{
decorations: DecorationSet;
update(update: ViewUpdate): void;
}>;