1
0
mirror of https://github.com/flarum/core.git synced 2025-07-27 03:30:28 +02:00

Fix global typings for extensions (#2992)

* Fix global typings for extensions

* Deprecate global `app` typings

See https://github.com/flarum/core/issues/2857#issuecomment-889841326

* Add `app` export for common namespace

* Add missing `app` imports within core

* Add missing `app` imports to JS files

* Fix incorrect import

* Fix admin file importing forum `app`

* Add `flarum` global variable

* Format

* Update JSDoc comment

* Update JSDoc comment

Co-authored-by: Alexander Skvortsov <sasha.skvortsov109@gmail.com>

* Fix frontend JS error

* Empty commit

Co-authored-by: Alexander Skvortsov <sasha.skvortsov109@gmail.com>
This commit is contained in:
David Wheatley
2021-08-19 11:10:40 +02:00
committed by GitHub
parent 8fe2332f98
commit 2831ce226c
118 changed files with 243 additions and 77 deletions

View File

@@ -1,3 +1,5 @@
import app from '../common/app';
/**
* The `Model` class represents a local data resource. It provides methods to
* persist changes via the API.