Skip to content

Commit

Permalink
chore: add dummy imports for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca committed Oct 26, 2024
1 parent bb29e87 commit 35bca76
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions extensions/flags/js/src/@types/shims.d.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 2 additions & 1 deletion extensions/likes/js/src/@types/shims.d.ts
Original file line number Diff line number Diff line change
@@ -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' {
Expand Down
4 changes: 4 additions & 0 deletions extensions/mentions/js/src/@types/shims.d.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
4 changes: 4 additions & 0 deletions extensions/messages/js/src/@types/shims.d.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
6 changes: 6 additions & 0 deletions extensions/tags/js/src/@types/shims.d.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down

0 comments on commit 35bca76

Please sign in to comment.