mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
type useWidgetAPI responce
This commit is contained in:
@@ -10,6 +10,7 @@ export default function Component({ service }) {
|
||||
/** @type {{widget: { fields: string[] }}} */
|
||||
const { widget } = service;
|
||||
|
||||
/** @type { { data: { label: string, count: number }[], error: unknown }} */
|
||||
const { data: suwayomiData, error: suwayomiError } = useWidgetAPI(widget);
|
||||
|
||||
if (suwayomiError) {
|
||||
|
||||
Reference in New Issue
Block a user