From b3a619b6a17159221ee47436ee467eb7caeffc2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Rinc=C3=B3n=20Blanco?= Date: Sat, 29 Oct 2022 16:29:17 +0200 Subject: [PATCH] Stop beliving the lies of GL's .d.ts (#4209) --- static/panes/compiler.ts | 6 ++++-- static/panes/conformance-view.ts | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/static/panes/compiler.ts b/static/panes/compiler.ts index 0924fb652..5b9b43265 100644 --- a/static/panes/compiler.ts +++ b/static/panes/compiler.ts @@ -679,9 +679,11 @@ export class Compiler extends MonacoPane { ); }; - this.container.layoutManager.createDragSource(popCompilerButton, getCompilerConfig()); + // The .d.ts for GL lies. You can pass a function that returns the config as a second parameter + this.container.layoutManager.createDragSource(popCompilerButton, getCompilerConfig as any); popCompilerButton.on('click', () => { const insertPoint =