mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-29 20:36:43 -06:00
cf3fc97202
* 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 * 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 * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
26 lines
459 B
TypeScript
26 lines
459 B
TypeScript
export type FormItem = {
|
|
label?: string;
|
|
type: 'string';
|
|
default: string | null;
|
|
hidden?: boolean;
|
|
multiline?: boolean;
|
|
} | {
|
|
label?: string;
|
|
type: 'number';
|
|
default: number | null;
|
|
hidden?: boolean;
|
|
step?: number;
|
|
} | {
|
|
label?: string;
|
|
type: 'boolean';
|
|
default: boolean | null;
|
|
hidden?: boolean;
|
|
} | {
|
|
label?: string;
|
|
type: 'enum';
|
|
default: string | null;
|
|
hidden?: boolean;
|
|
enum: string[];
|
|
};
|
|
|
|
export type Form = Record<string, FormItem>;
|