summaryrefslogtreecommitdiff
path: root/packages/frontend/src/utility/form.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/frontend/src/utility/form.ts')
-rw-r--r--packages/frontend/src/utility/form.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/frontend/src/utility/form.ts b/packages/frontend/src/utility/form.ts
index a86ae1d1c4..43dee37a0e 100644
--- a/packages/frontend/src/utility/form.ts
+++ b/packages/frontend/src/utility/form.ts
@@ -4,7 +4,7 @@
*/
import * as Misskey from 'misskey-js';
-import type { OptionValue } from '@/components/MkSelect.vue';
+import type { OptionValue } from '@/types/option-value.js';
export type EnumItem = string | {
label: string;
@@ -45,18 +45,18 @@ export interface BooleanFormItem extends FormItemBase {
export interface EnumFormItem extends FormItemBase {
type: 'enum';
- default?: string | null;
+ default?: OptionValue | null;
required?: boolean;
enum: EnumItem[];
}
export interface RadioFormItem extends FormItemBase {
type: 'radio';
- default?: unknown | null;
+ default?: OptionValue | null;
required?: boolean;
options: {
label: string;
- value: unknown;
+ value: OptionValue;
}[];
}