We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fda983a commit 1d41b3bCopy full SHA for 1d41b3b
packages/react-sandpack/src/helper-components/CodeMirror/CodeMirror.tsx
@@ -14,7 +14,7 @@ export interface Props {
14
value: string
15
) => void;
16
value: string;
17
- codeMirrorOptions?: codemirror.EditorConfiguration;
+ codeMirrorOptions?: Partial<codemirror.EditorConfiguration>;
18
className?: string;
19
style?: Object;
20
}
@@ -35,6 +35,7 @@ export default class CodeMirror extends React.Component<Props> {
35
style={style}
36
>
37
<Controlled
38
+ // @ts-ignore
39
options={{
40
keyMap: 'sublime',
41
indentUnit: 2,
0 commit comments