分割代入 Destructuring assignment
通常のJS (ES6)
const {name, age} = person;
TypeScript
const {name, age}: {name: string, age: number} = person;
https://teratail.com/questions/63145
で解決しました。
Go to list of users who liked
More than 5 years have passed since last update.
分割代入 Destructuring assignment
通常のJS (ES6)
const {name, age} = person;
TypeScript
const {name, age}: {name: string, age: number} = person;
https://teratail.com/questions/63145
で解決しました。
Register as a new user and use Qiita more conveniently
Go to list of users who liked