Skip to content

Commit

Permalink
feat: add shims
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca committed Aug 8, 2024
1 parent 9523d5c commit 56b26c8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions js/src/@types/shims.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type Field from '../lib/models/Field';
import type Answer from '../lib/models/Answer';

declare module 'flarum/common/models/User' {
export default interface User {
bioFields(): Field[];
masqueradeAnswers(): Answer[];
canEditMasqueradeProfile(): boolean;
}
}

0 comments on commit 56b26c8

Please sign in to comment.