UNPKG

splitster

Version:
16 lines (12 loc) 404 B
// @flow import type { UserGroupConfig } from '../types' import { getUserGroup } from '../tools/userGroupsTools' export type UserGroupRule = Object => boolean export type UserGroup = UserGroupRule[] export type UserGroups = { [string]: UserGroup } // TODO: do UserGroup export const constructUserGroup = ( userGroupConfig: UserGroupConfig, ): UserGroup => { return getUserGroup(userGroupConfig) }