diff --git a/js/src/@types/shims.d.ts b/js/src/@types/shims.d.ts new file mode 100644 index 0000000..4cd4d2b --- /dev/null +++ b/js/src/@types/shims.d.ts @@ -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; + } +}