From 41592eafb363e3c62ab2d3e5f41b38d7d083d3fb Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Fri, 9 Jan 2026 22:06:40 +0900 Subject: refactor: make noImplicitAny true (#17083) * wip * Update emojis.emoji.vue * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update manager.ts * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update analytics.ts --- packages/frontend/src/widgets/widget.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'packages/frontend/src/widgets/widget.ts') diff --git a/packages/frontend/src/widgets/widget.ts b/packages/frontend/src/widgets/widget.ts index 603cf8a31d..cab6177247 100644 --- a/packages/frontend/src/widgets/widget.ts +++ b/packages/frontend/src/widgets/widget.ts @@ -5,12 +5,11 @@ import { defineAsyncComponent, reactive, watch } from 'vue'; import { throttle } from 'throttle-debounce'; -import { getDefaultFormValues } from '@/utility/form.js'; import type { Reactive } from 'vue'; import type { FormWithDefault, GetFormResultType } from '@/utility/form.js'; +import { getDefaultFormValues } from '@/utility/form.js'; import * as os from '@/os.js'; import { deepClone } from '@/utility/clone.js'; -import { i18n } from '@/i18n'; export type Widget

> = { id: string; @@ -22,7 +21,7 @@ export type WidgetComponentProps

> = { }; export type WidgetComponentEmits

> = { - (ev: 'updateProps', props: P); + (ev: 'updateProps', props: P): void; }; export type WidgetComponentExpose = { @@ -54,7 +53,7 @@ export const useWidgetPropsManager = ( watch(() => props.widget?.data, (to) => { if (to != null) { for (const key of Object.keys(propsDef)) { - widgetProps[key] = to[key]; + (widgetProps as any)[key] = to[key]; } } }, { deep: true }); @@ -66,7 +65,7 @@ export const useWidgetPropsManager = ( const configure = async () => { const form = deepClone(propsDef); for (const item of Object.keys(form)) { - form[item].default = widgetProps[item]; + form[item].default = (widgetProps as any)[item]; } const res = await new Promise<{ @@ -97,7 +96,7 @@ export const useWidgetPropsManager = ( } for (const key of Object.keys(res.result)) { - widgetProps[key] = res.result[key]; + (widgetProps as any)[key] = res.result[key]; } save(); -- cgit v1.2.3-freya