Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add dummy imports shim declarations #4098

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading