1
0
mirror of https://github.com/flarum/core.git synced 2025-09-09 07:31:09 +02:00

[1.x] [extensibility] Add (some) missing shims (#4027)

* chore: add some missing shims

* chore: remove unused import
This commit is contained in:
Davide Iadeluca
2024-10-02 13:13:26 +02:00
committed by GitHub
parent ed72aa0128
commit 88f182cc93
6 changed files with 38 additions and 1 deletions

View File

@@ -1,9 +1,9 @@
import Post from 'flarum/common/models/Post';
import User from 'flarum/common/models/User';
declare module 'flarum/common/models/Post' {
export default interface Post {
likes(): User[];
likesCount(): number;
canLike(): boolean;
}
}