From ba772ab4fc6298dd5ebf662d238661c20e787889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Sevilla=20Mart=C3=ADn?= <6401250+datitisev@users.noreply.github.com> Date: Fri, 2 Oct 2020 19:34:06 -0400 Subject: [PATCH] Remove Mithril namespace export from shims.d.ts (#2347) From using PhpStorm to try and see if the autocomplete works properly, it appears as it doesn't. The intention was to not have to import Mithril every time we wanted to type something with Mithril.*, but that doesn't seem to be possible - and it's not a big deal anyway --- framework/core/js/shims.d.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/framework/core/js/shims.d.ts b/framework/core/js/shims.d.ts index a9fc278f3..493c6ede7 100644 --- a/framework/core/js/shims.d.ts +++ b/framework/core/js/shims.d.ts @@ -8,14 +8,6 @@ import * as _$ from 'jquery'; // Globals from flarum/core import Application from './src/common/Application'; -/** - * Export Mithril typings globally. - * - * This lets us use these typings without an extra import everywhere we use - * Mithril in a TypeScript file. - */ -export as namespace Mithril; - /** * flarum/core exposes several extensions globally: *