import { PaintStyleObject } from '@typings/styles' ; function param { Array } paintStyles const getPaintStyles = ( styles ) : PaintStyleObject [ ] => { const styleArray = [ ] ; styles . forEach ( style => { styleArray . push ( { name : style . name , id : style . id , description : style . description , paints : style . paints } ) ; } ) ; return styleArray ; } ; export default getPaintStyles ;