mirror of
https://github.com/flarum/framework.git
synced 2024-11-22 12:48:28 +08:00
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
This commit is contained in:
parent
17a7155f60
commit
27d562f3fc
8
js/shims.d.ts
vendored
8
js/shims.d.ts
vendored
|
@ -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:
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user