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 ebc3c4f commit 2373fcc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions js/src/@types/shims.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
declare module 'flarum/common/models/User' {
export default interface User {
canSuspend(): boolean;
suspendedUntil(): Date | string | null | undefined;
suspendReason(): string | null | undefined;
suspendMessage(): string | null | undefined;
}
}

0 comments on commit 2373fcc

Please sign in to comment.