javascript - Is there a way to group same type variable in Angular 2 Typescript component? -


this question has answer here:

is there java-like way group same type variables in component?

for example, have:

foo1: string; foo2: string; donald3: string; 

is there way this?

foo1, foo2, donald3: string; 

there no such syntax. gotta have include type each variable.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -