const x = [{a: 1, b: 2}].map((d: any) => ({...d, c: 'something new'}))
how can I make x has c property on array of object above?
I tried
const x = ([{a: 1, b: 2}] as any).map((d: <{c: string}>) => ({...d, c: 'something new'}))
but it doesn't seems it's the right syntax.