UNPKG

@rxdi/ui-components

Version:

UI Components for building graphql-server website

42 lines (40 loc) 664 B
function strEnum<T extends string>(o: Array<T>): { [K in T]: K } { return o.reduce((res, key) => { res[key] = key; return res; }, Object.create(null)); } export const HamburgerTypes = strEnum([ '3dx', '3dx-r', '3dy', '3dy-r', '3dxy', '3dxy-r', 'arrow', 'arrow-r', 'arrowalt', 'arrowalt-r', 'arrowturn', 'arrowturn-r', 'boring', 'collapse', 'collapse-r', 'elastic', 'elastic-r', 'emphatic', 'emphatic-r', 'minus', 'slider', 'slider-r', 'spin', 'spin-r', 'spring', 'spring-r', 'stand', 'stand-r', 'squeeze', 'vortex', 'vortex-r' ]); export type HamburgerTypes = keyof typeof HamburgerTypes;