diff --git a/src/routes/misc.ts b/src/routes/misc.ts index 330e883..08a9e43 100644 --- a/src/routes/misc.ts +++ b/src/routes/misc.ts @@ -102,7 +102,13 @@ resource('/sync/unreads', { post: routeAuthenticated( "Fetch Unreads", "Fetch information about unread state on channels.", - await success("Unreads Data", ref("ChannelUnread")) + await success( + "Array of Unreads Data", + schema` + import type { ChannelUnread } from "./Sync"; + type ${'FetchUnreads'} = ChannelUnread[]; + ` + ) ) }); //#endregion @@ -128,4 +134,4 @@ resource('/push/unsubscribe', { await noContent("Unsubscribed successfully.") ) }); -//#endregion \ No newline at end of file +//#endregion