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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -