not assignable to parameter of type never
not assignable to parameter of type never
const foo = (foo: string) => { const result = [] result.push(foo) }
Without a type defined in array, it defaults to never
. Assign type.
const result : string[] = [];