2021-12-13 01:41:29 +00:00
|
|
|
import Model from '../Model';
|
|
|
|
import Discussion from './Discussion';
|
|
|
|
import User from './User';
|
2021-05-12 23:29:46 +00:00
|
|
|
export default class Post extends Model {
|
2021-12-13 01:41:29 +00:00
|
|
|
number(): number;
|
|
|
|
discussion(): Discussion;
|
|
|
|
createdAt(): Date;
|
|
|
|
user(): false | User;
|
|
|
|
contentType(): string | null;
|
|
|
|
content(): string | null | undefined;
|
|
|
|
contentHtml(): string | null | undefined;
|
|
|
|
renderFailed(): boolean | undefined;
|
|
|
|
contentPlain(): string | null | undefined;
|
|
|
|
editedAt(): Date | null | undefined;
|
|
|
|
editedUser(): false | User | null;
|
|
|
|
isEdited(): boolean;
|
|
|
|
hiddenAt(): Date | null | undefined;
|
|
|
|
hiddenUser(): false | User | null;
|
|
|
|
isHidden(): boolean;
|
|
|
|
canEdit(): boolean | undefined;
|
|
|
|
canHide(): boolean | undefined;
|
|
|
|
canDelete(): boolean | undefined;
|
2021-05-12 23:29:46 +00:00
|
|
|
}
|