1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-23 22:56:58 +09:00

refactor(frontend): fix enum types in scripts/form (#11138)

This commit is contained in:
Ryoh827 2023-07-06 20:23:54 +09:00 committed by GitHub
parent c065b97140
commit bc61f37faa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,4 @@
type EnumItem = string | {label: string; value: string;};
export type FormItem = {
label?: string;
type: 'string';
@ -20,7 +21,7 @@ export type FormItem = {
type: 'enum';
default: string | null;
hidden?: boolean;
enum: string[];
enum: EnumItem[];
} | {
label?: string;
type: 'radio';