TypeScript-TmLanguage/tests/cases/propertyNameInObjectBinding...

3 строки
147 B
TypeScript

var { "propName": prop, 'propName2': prop2, ["string"]: str } = foo();
function bar({ "propName": prop, 'propName2': prop2, ["string"]: str }){
}