fix: fix type error of useNoteCapture

This commit is contained in:
Lhc_fl 2024-10-21 01:35:40 +08:00
parent 90d8050df4
commit 54addd0390
No known key found for this signature in database
GPG key ID: 3A10435B21EDC6AA

View file

@ -5,18 +5,18 @@
import { onUnmounted, Ref, ShallowRef } from 'vue';
import * as Misskey from 'misskey-js';
import { misskeyApi } from './misskey-api.js';
import { useStream } from '@/stream.js';
import { $i } from '@/account.js';
import * as os from '@/os.js';
import { misskeyApi } from './misskey-api.js';
export function useNoteCapture(props: {
rootEl: ShallowRef<HTMLElement | undefined>;
note: Ref<Misskey.entities.Note>;
pureNote: Ref<Misskey.entities.Note>;
pureNote?: Ref<Misskey.entities.Note>;
isDeletedRef: Ref<boolean>;
onReplyCallback: (replyNote: Misskey.entities.Note) => void | undefined;
onDeleteCallback: (id: Misskey.entities.Note['id']) => void | undefined;
onReplyCallback?: (replyNote: Misskey.entities.Note) => void | Promise<void>;
onDeleteCallback?: (id: Misskey.entities.Note['id']) => void | Promise<void>;
}) {
const note = props.note;
const pureNote = props.pureNote !== undefined ? props.pureNote : props.note;