jsketcher/web/app/cad/icons/IconDeclaration.ts
2022-06-25 15:19:48 -07:00

24 lines
412 B
TypeScript

export type IconDeclaration = IconSetDef | IconDef;
export enum IconSize {
small = 'small',
medium = 'medium',
large = 'large'
}
export interface IconSetDef {
iconType: IconType;
iconSet: {
[key in IconSize]: IconDef
}
}
export type IconType = 'image' | 'svg';
export type IconContent = any;
export type IconDef = IconContent | {
iconType: IconType;
iconContent: IconContent;
};