diff --git a/types/react-monaco-editor/index.d.ts b/types/react-monaco-editor/index.d.ts index 85bb06a0f2..a493f3e194 100644 --- a/types/react-monaco-editor/index.d.ts +++ b/types/react-monaco-editor/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-monaco-editor 0.8 +// Type definitions for react-monaco-editor 0.10 // Project: https://github.com/superRaytin/react-monaco-editor // Definitions by: Joshua Netterfield // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -31,7 +31,7 @@ export interface ReactMonacoEditorProps { defaultValue?: string; /** - * The initial language of the auto created model in the editor. + * The initial language of the auto created model in the editor. Defaults to 'javascript'. */ language?: string; @@ -60,7 +60,7 @@ export interface ReactMonacoEditorProps { /** * An event emitted when the content of the current model has changed. */ - onChange?(val: string, ev: monaco.editor.IModelContentChangedEvent2): void; + onChange?(val: string, ev: monaco.editor.IModelContentChangedEvent): void; /** * Optional, allow to config loader url and relative path of module, refer to require.config. diff --git a/types/react-monaco-editor/package.json b/types/react-monaco-editor/package.json index d6c58f873f..c30b05905b 100644 --- a/types/react-monaco-editor/package.json +++ b/types/react-monaco-editor/package.json @@ -1,6 +1,6 @@ { "private": true, "dependencies": { - "monaco-editor": "0.8.3" + "monaco-editor": "^0.10.0" } -} \ No newline at end of file +} diff --git a/types/react-monaco-editor/react-monaco-editor-tests.tsx b/types/react-monaco-editor/react-monaco-editor-tests.tsx index 3c9d3c359b..0c46e4cfd8 100644 --- a/types/react-monaco-editor/react-monaco-editor-tests.tsx +++ b/types/react-monaco-editor/react-monaco-editor-tests.tsx @@ -21,7 +21,7 @@ class CodeEditor extends React.Component { console.log('editorDidMount', editor, editor.getValue(), editor.getModel()); this.editor = editor; } - onChange = (newValue: string, e: monaco.editor.IModelContentChangedEvent2) => { + onChange = (newValue: string, e: monaco.editor.IModelContentChangedEvent) => { console.log('onChange', newValue, e); this.setState({ code: newValue,