1
0
mirror of https://github.com/flarum/core.git synced 2025-09-01 04:11:56 +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,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;
}
}