added type doc to menu related files

This commit is contained in:
lotte
2018-12-11 15:47:41 +01:00
parent c0a4fdc797
commit e13d743e32
35 changed files with 765 additions and 231 deletions

View File

@@ -1,14 +1,23 @@
import { MenusState } from './menu.reducer';
/**
* Availavle Menu IDs
*/
export enum MenuID {
ADMIN = 'admin-sidebar',
PUBLIC = 'public'
}
export enum SectionType {
/**
* List of possible MenuItemTypes
*/
export enum MenuItemType {
TEXT, LINK, ALTMETRIC, SEARCH
}
/**
* The initial state of the menus
*/
export const initialMenusState: MenusState = {
[MenuID.ADMIN]:
{