refactor(web): move all types into typings folder

This commit is contained in:
Luke
2023-02-15 13:00:09 +01:00
parent 5b4c6b8674
commit 829bec2592
42 changed files with 181 additions and 169 deletions

View File

@@ -0,0 +1,29 @@
import { IconProp } from '@fortawesome/fontawesome-svg-core';
export interface Option {
menu?: string;
title?: string;
description?: string;
arrow?: boolean;
image?: string;
icon?: IconProp;
iconColor?: string;
progress?: number;
colorScheme?: string;
metadata?: string[] | { [key: string]: any } | { label: string; value: any; progress?: number }[];
disabled?: boolean;
event?: string;
serverEvent?: string;
args?: any;
}
export interface Options {
[key: string]: Option;
}
export interface ContextMenuProps {
title: string;
menu?: string;
canClose?: boolean;
options: Options | Option[];
}