Declaring multiple TypeScript variables on the same line
Ex : a: any;
b: any;
a, b : any;
Hi Arulmano,
You can try this syntax in any function its works fine.
let greet: any= 'Hi', personNumber = 111';
i need global declaration using any;
Sorry buddy, I don’t think is there any syntax like single line global declarations in TypeScript.
http://stackoverflow.com/questions/34232315/declaring-multiple-typescript-variables-on-the-same-line
thx buddy…for your help
1 Like