23 lines
356 B
TypeScript
23 lines
356 B
TypeScript
export type AreaType = WrapperAreaType | CategoryAreaType | SidebarAreaType;
|
|
|
|
interface WrapperAreaType {
|
|
type: 'wrapper';
|
|
properties: {
|
|
id: string;
|
|
};
|
|
}
|
|
|
|
interface CategoryAreaType {
|
|
type: 'category';
|
|
properties: {
|
|
id: string;
|
|
};
|
|
}
|
|
|
|
interface SidebarAreaType {
|
|
type: 'sidebar';
|
|
properties: {
|
|
location: 'right' | 'left';
|
|
};
|
|
}
|