private arrays:Array<string> = ['one','two','three']; In typescript, Object can be declared using any type. I have created a demo on Stackblitz. stackoverflow.
確定! 回上一頁