1
0
mirror of https://github.com/flarum/core.git synced 2025-09-02 12:43:28 +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

@@ -0,0 +1,12 @@
declare module 'flarum/common/models/Discussion' {
export default interface Discussion {
isApproved(): boolean;
}
}
declare module 'flarum/common/models/Post' {
export default interface Post {
isApproved(): boolean;
canApprove(): boolean;
}
}