From 57dabe603a936c65616b9758f07b5ca6fdb0130f Mon Sep 17 00:00:00 2001 From: ficristo Date: Wed, 27 Mar 2019 19:56:18 +0100 Subject: [PATCH] Add 'cm' argument to selectAll --- types/codemirror/index.d.ts | 2 +- types/codemirror/test/index.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/types/codemirror/index.d.ts b/types/codemirror/index.d.ts index 788fe591eb..6acbabd2c1 100644 --- a/types/codemirror/index.d.ts +++ b/types/codemirror/index.d.ts @@ -1224,7 +1224,7 @@ declare namespace CodeMirror { interface CommandActions { /** Select the whole content of the editor. */ - selectAll(): void; + selectAll(cm: CodeMirror.Editor): void; /** When multiple selections are present, this deselects all but the primary selection. */ singleSelection(cm: CodeMirror.Editor): void; diff --git a/types/codemirror/test/index.ts b/types/codemirror/test/index.ts index 649361ae99..c9ccd13b29 100644 --- a/types/codemirror/test/index.ts +++ b/types/codemirror/test/index.ts @@ -101,5 +101,4 @@ widget2.clear(); htmlElement1.remove(); htmlElement2.remove(); -CodeMirror.commands.selectAll(); CodeMirror.commands.newlineAndIndent(myCodeMirror);