import type { FilterType , ListType , PickerType , ToggleType } from './types' ; export function filterListSpecs ( specs ) { let retval = specs . filter ( ( f ) => f . type === 'list' ) ; return retval ; } export function filterPickerSpecs ( specs ) { let retval = specs . filter ( ( f ) => f . type === 'picker' ) ; return retval ; } export function filterToggleSpecs ( specs ) { let retval = specs . filter ( ( f ) => f . type === 'toggle' ) ; return retval ; }