plugin-sample-vite-svelte/src/libs/index.d.ts
2024-01-13 22:10:54 +08:00

19 lines
485 B
TypeScript

type TSettingItemType = "checkbox" | "select" | "textinput" | "textarea" | "number" | "slider" | "button" | "hint";
interface ISettingItem {
key: string;
value: any;
type: TSettingItemType;
title: string;
description?: string;
placeholder?: string;
slider?: {
min: number;
max: number;
step: number;
};
options?: { [key: string | number]: string };
button?: {
label: string;
callback: () => void;
}
}