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:
8
extensions/suspend/js/src/@types/shims.d.ts
vendored
Normal file
8
extensions/suspend/js/src/@types/shims.d.ts
vendored
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user