diff --git a/types/simplemde/index.d.ts b/types/simplemde/index.d.ts index c78d4fb408..693e4a2ca2 100644 --- a/types/simplemde/index.d.ts +++ b/types/simplemde/index.d.ts @@ -35,7 +35,7 @@ declare namespace SimpleMDE { } interface ShortcutsArray { - [action: string]: string; + [action: string]: string|undefined; toggleBlockquote?: string; toggleBold?: string; cleanBlock?: string; diff --git a/types/simplemde/simplemde-tests.ts b/types/simplemde/simplemde-tests.ts index e9be36b7cb..313b3c80d4 100644 --- a/types/simplemde/simplemde-tests.ts +++ b/types/simplemde/simplemde-tests.ts @@ -57,7 +57,8 @@ function testSimplemde() { codeSyntaxHighlighting: true }, shortcuts: { - drawTable: "Cmd-Alt-T" + drawTable: "Cmd-Alt-T", + toggleCodeBlock: null }, showIcons: ["code", "table"], spellChecker: false,