import { EffectStyleObject } from '@typings/styles' ; function param { Array < EffectStyle > } styles const getEffectStyles = ( styles ) : EffectStyleObject [ ] => { const styleArray = [ ] ; styles . forEach ( style => { styleArray . push ( { name : style . name , id : style . id , description : style . description , effects : style . effects } ) ; } ) ; return styleArray ; } ; export default getEffectStyles ;