Fix type annotations

This commit is contained in:
syuilo 2018-08-29 06:37:14 +09:00
parent 272700e795
commit d8ec698877

View file

@ -1,5 +1,6 @@
import from './ai'; import from './ai';
import Friend from './friend'; import Friend from './friend';
import { User } from './misskey/user';
const delay = require('timeout-as-promise'); const delay = require('timeout-as-promise');
export default class MessageLike { export default class MessageLike {
@ -7,23 +8,23 @@ export default class MessageLike {
private messageOrNote: any; private messageOrNote: any;
public isMessage: boolean; public isMessage: boolean;
public get id() { public get id(): string {
return this.messageOrNote.id; return this.messageOrNote.id;
} }
public get user() { public get user(): User {
return this.messageOrNote.user; return this.messageOrNote.user;
} }
public get userId() { public get userId(): string {
return this.messageOrNote.userId; return this.messageOrNote.userId;
} }
public get text() { public get text(): string {
return this.messageOrNote.text; return this.messageOrNote.text;
} }
public get replyId() { public get replyId(): string {
return this.messageOrNote.replyId; return this.messageOrNote.replyId;
} }