diff --git a/extensions/flags/js/src/@types/shims.d.ts b/extensions/flags/js/src/@types/shims.d.ts index 6fd28d4222..4bfd071b71 100644 --- a/extensions/flags/js/src/@types/shims.d.ts +++ b/extensions/flags/js/src/@types/shims.d.ts @@ -1,3 +1,7 @@ +import 'flarum/common/models/Post'; +import 'flarum/forum/ForumApplication'; +import 'flarum/forum/components/Post'; + import Flag from '../forum/models/Flag'; import FlagListState from '../forum/states/FlagListState'; import Mithril from 'mithril'; diff --git a/extensions/likes/js/src/@types/shims.d.ts b/extensions/likes/js/src/@types/shims.d.ts index fb573ff95e..d9d102bc2e 100644 --- a/extensions/likes/js/src/@types/shims.d.ts +++ b/extensions/likes/js/src/@types/shims.d.ts @@ -1,4 +1,5 @@ -import Post from 'flarum/common/models/Post'; +import 'flarum/common/models/Post'; + import User from 'flarum/common/models/User'; declare module 'flarum/common/models/Post' { diff --git a/extensions/mentions/js/src/@types/shims.d.ts b/extensions/mentions/js/src/@types/shims.d.ts index dcb5c31a49..238f93d033 100644 --- a/extensions/mentions/js/src/@types/shims.d.ts +++ b/extensions/mentions/js/src/@types/shims.d.ts @@ -1,3 +1,7 @@ +import 'flarum/forum/ForumApplication'; +import 'flarum/common/models/User'; +import 'flarum/common/models/Post'; + import MentionFormats from '../forum/mentionables/formats/MentionFormats'; import type BasePost from 'flarum/common/models/Post'; diff --git a/extensions/messages/js/src/@types/shims.d.ts b/extensions/messages/js/src/@types/shims.d.ts index 42e42031bb..a0ea7d20df 100644 --- a/extensions/messages/js/src/@types/shims.d.ts +++ b/extensions/messages/js/src/@types/shims.d.ts @@ -1,3 +1,7 @@ +import 'flarum/forum/routes'; +import 'flarum/forum/ForumApplication'; +import 'flarum/forum/states/ComposerState'; + import type Dialog from '../common/models/Dialog'; import DialogListState from '../forum/states/DialogListState'; diff --git a/extensions/tags/js/src/@types/shims.d.ts b/extensions/tags/js/src/@types/shims.d.ts index 6b021365d3..68007454ca 100644 --- a/extensions/tags/js/src/@types/shims.d.ts +++ b/extensions/tags/js/src/@types/shims.d.ts @@ -1,3 +1,9 @@ +import 'flarum/forum/routes'; +import 'flarum/common/Application'; +import 'flarum/common/models/Discussion'; +import 'flarum/forum/ForumApplication'; +import 'flarum/admin/components/PermissionGrid'; + import type Tag from '../common/models/Tag'; import type TagListState from '../common/states/TagListState';