diff --git a/src/code_manager/view/EditorView.js b/src/code_manager/view/EditorView.ts similarity index 79% rename from src/code_manager/view/EditorView.js rename to src/code_manager/view/EditorView.ts index 7e7e27b16..e001fcfb3 100644 --- a/src/code_manager/view/EditorView.js +++ b/src/code_manager/view/EditorView.ts @@ -2,7 +2,10 @@ import { View } from '../../common'; import html from '../../utils/html'; export default class EditorView extends View { - template({ pfx, codeName, label }) { + pfx?: string; + config!: Record; + + template({ pfx, codeName, label }: { pfx: string; codeName: string; label: string }) { return html`
${label}
@@ -11,7 +14,7 @@ export default class EditorView extends View { `; } - initialize(o) { + initialize(o: any) { this.config = o.config || {}; this.pfx = this.config.stylePrefix; }