fix types in test/utils.ts

This commit is contained in:
dakkar 2025-05-13 16:13:15 +01:00
parent 00f3a1b479
commit 1b27fb1a65

View file

@ -696,7 +696,7 @@ export async function captureWebhook<T = SystemWebhookPayload>(postAction: () =>
// the packed user inside each note returned by `users/notes` has the
// latest `notesCount`, not the count at the time the note was
// created, so we override it
export function withNotesCount(notes, count) {
export function withNotesCount(notes: misskey.entities.Note[], count: number) {
return notes.map( note => {
return {
...note,