Sarà dattiloscritto assegnazioni destrutturazione di supporto simili a CoffeeScript?
foo = {x: 1, y: 2, z: 3}
{x, z} = foo
# which will yield
x == 1 && z == 3
Sarà dattiloscritto assegnazioni destrutturazione di supporto simili a CoffeeScript?
foo = {x: 1, y: 2, z: 3}
{x, z} = foo
# which will yield
x == 1 && z == 3
Si lo farà.
Vedere questo problema nella loro bug tracker: http://typescript.codeplex.com/workitem/15
UPDATE: Questo è ora supportato.
Già ora sostiene dal ES6 in poi. È possibile verificare il codice nel browser (che supporta ES6) consolarsi, come di seguito.
const user = {name: 'Robkuz', gender: 'Male', looks: 'Great'}
const {name, looks} = user;