Skip to content

Commit

Permalink
[1.x] [extensibility] Add (some) missing shims (#4027)
Browse files Browse the repository at this point in the history
* chore: add some missing shims

* chore: remove unused import
  • Loading branch information
DavideIadeluca authored Oct 2, 2024
1 parent b144269 commit 61a7625
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions js/src/@types/shims.d.ts
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit 61a7625

Please sign in to comment.