Skip to content

Commit

Permalink
chore: minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca committed Nov 2, 2024
1 parent 5cf5ddc commit 6af76fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/src/@types/shims.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'flarum/common/models/User';
declare module 'flarum/common/models/User' {
export default interface User {
bio(): string;
bioHtml(): string;
bioHtml(): string | null;
canViewBio(): boolean;
canEditBio(): boolean;
}
Expand Down
2 changes: 1 addition & 1 deletion js/src/forum/extend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import User from 'flarum/common/models/User';
export default [
new Extend.Model(User) //
.attribute<string>('bio')
.attribute<string>('bioHtml')
.attribute<string | null>('bioHtml')
.attribute<boolean>('canViewBio')
.attribute<boolean>('canEditBio'),
];

0 comments on commit 6af76fb

Please sign in to comment.