Skip to content

Commit b0eb87c

Browse files
committed
chore: add @ts-expect-error to potential issue on masto.js types
1 parent 3ecc94d commit b0eb87c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/components/list/ListEntry.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ async function removeList() {
7171
if (confirmDelete.choice === 'confirm') {
7272
await nextTick()
7373
try {
74+
// @ts-expect-error this method should not take any argument, but it expects 1-2 arguments since masto.js v7.7.0 (potential issue)
7475
await client.v1.lists.$select(list.value.id).remove()
7576
emit('listRemoved', list.value.id)
7677
}

app/composables/masto/status.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export function useStatusActions(props: StatusActionsProps) {
6161

6262
const toggleReblog = () => toggleStatusAction(
6363
'reblogged',
64+
// @ts-expect-error this method should not take any argument, but it expects 1-2 arguments since masto.js v7.7.0 (potential issue)
6465
() => client.value.v1.statuses.$select(status.value.id)[status.value.reblogged ? 'unreblog' : 'reblog']().then((res) => {
6566
if (status.value.reblogged)
6667
// returns the original status

0 commit comments

Comments
 (0)