reply, renoteにも型定義
This commit is contained in:
parent
885c0fae9a
commit
29e0af7bb8
|
@ -50,8 +50,8 @@ export default defineComponent({
|
||||||
|
|
||||||
title: null as string | null,
|
title: null as string | null,
|
||||||
initialText: null as string | null,
|
initialText: null as string | null,
|
||||||
reply: null as any,
|
reply: null as Misskey.entities.Note | null,
|
||||||
renote: null as any,
|
renote: null as Misskey.entities.Note | null,
|
||||||
visibility: null as string | null,
|
visibility: null as string | null,
|
||||||
localOnly: null as boolean | null,
|
localOnly: null as boolean | null,
|
||||||
files: [] as Misskey.entities.DriveFile[],
|
files: [] as Misskey.entities.DriveFile[],
|
||||||
|
@ -114,7 +114,7 @@ export default defineComponent({
|
||||||
} else if (replyUri) {
|
} else if (replyUri) {
|
||||||
const obj = await os.api('ap/show', {
|
const obj = await os.api('ap/show', {
|
||||||
uri: replyUri
|
uri: replyUri
|
||||||
}) as any;
|
});
|
||||||
if (obj.type === 'Note') {
|
if (obj.type === 'Note') {
|
||||||
this.reply = obj.object;
|
this.reply = obj.object;
|
||||||
}
|
}
|
||||||
|
@ -131,7 +131,7 @@ export default defineComponent({
|
||||||
} else if (renoteUri) {
|
} else if (renoteUri) {
|
||||||
const obj = await os.api('ap/show', {
|
const obj = await os.api('ap/show', {
|
||||||
uri: renoteUri
|
uri: renoteUri
|
||||||
}) as any;
|
});
|
||||||
if (obj.type === 'Note') {
|
if (obj.type === 'Note') {
|
||||||
this.renote = obj.object;
|
this.renote = obj.object;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue