Typescript Type For Array Javascript Append Function In Python