mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-31 21:05:01 +01:00
24 lines
412 B
TypeScript
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;
|
|
};
|