mirror of
https://github.com/syuilo/ai.git
synced 2024-11-22 13:17:59 +00:00
Fix type annotations
This commit is contained in:
parent
272700e795
commit
d8ec698877
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue