Code is:
const foo = (foo: string) => { const result = [] result.push(foo) }
I get the following TS error:
[t
Another way is :
const result = [] as any;