splitster
Version:
Javascript AB testing tool
16 lines (12 loc) • 404 B
JavaScript
// @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)
}