Typescript Declare Type Array Javascript Methods Syntax