summaryrefslogtreecommitdiff
path: root/packages/frontend/src/widgets/widget.ts
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2026-01-14 14:45:45 +0900
committerGitHub <noreply@github.com>2026-01-14 14:45:45 +0900
commitbd81a6c8adb45067bee9582f84855a60a962e92b (patch)
treec15ed273fcff360700a280ab4a9ef72837a5f26c /packages/frontend/src/widgets/widget.ts
parentrefactor(frontend): MkRadioをMkRadiosに統合 (diff)
downloadmisskey-bd81a6c8adb45067bee9582f84855a60a962e92b.tar.gz
misskey-bd81a6c8adb45067bee9582f84855a60a962e92b.tar.bz2
misskey-bd81a6c8adb45067bee9582f84855a60a962e92b.zip
refactor(frontend): anyを除去2 (#17092)
* wip * fix types * fix
Diffstat (limited to 'packages/frontend/src/widgets/widget.ts')
-rw-r--r--packages/frontend/src/widgets/widget.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/frontend/src/widgets/widget.ts b/packages/frontend/src/widgets/widget.ts
index cab6177247..bfb724ff72 100644
--- a/packages/frontend/src/widgets/widget.ts
+++ b/packages/frontend/src/widgets/widget.ts
@@ -10,6 +10,7 @@ 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 type { WidgetName } from './index.js';
export type Widget<P extends Record<string, unknown>> = {
id: string;
@@ -31,7 +32,7 @@ export type WidgetComponentExpose = {
};
export const useWidgetPropsManager = <F extends FormWithDefault>(
- name: string,
+ name: WidgetName,
propsDef: F,
props: Readonly<WidgetComponentProps<GetFormResultType<F>>>,
emit: WidgetComponentEmits<GetFormResultType<F>>,