From a1f86a44701c5e1cebdbeae2186a9c8ab44b9fde Mon Sep 17 00:00:00 2001 From: Robonau <30987265+Robonau@users.noreply.github> Date: Mon, 11 Nov 2024 22:18:04 +0000 Subject: [PATCH] use multiline types for objects --- src/widgets/suwayomi/component.jsx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/widgets/suwayomi/component.jsx b/src/widgets/suwayomi/component.jsx index a52773bbf..28bfc9510 100644 --- a/src/widgets/suwayomi/component.jsx +++ b/src/widgets/suwayomi/component.jsx @@ -24,10 +24,23 @@ function makeFields(Fields = []) { export default function Component({ service }) { const { t } = useTranslation(); - /** @type {{widget: { fields: string[]|null }}} */ + /** + * @type {{ + * widget: { + * fields: string[]|null + * } + * }} + */ const { widget } = service; - /** @type { { data: { label: string, count: number }[], error: unknown }} */ + /** + * @type {{ + * error: unknown + * data: ({ + * label: string, count: number + * }[]), + * }} + */ const { data: suwayomiData, error: suwayomiError } = useWidgetAPI(widget); if (suwayomiError) {