質問編集履歴
3
URLをリンク化
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,4 +50,4 @@
|
|
50
50
|
|
51
51
|
TypeScriptの分割代入について
|
52
52
|
|
53
|
-
https://typescript-jp.gitbook.io/deep-dive/future-javascript/destructuring#obujekutono
|
53
|
+
[https://typescript-jp.gitbook.io/deep-dive/future-javascript/destructuring#obujekutono](https://typescript-jp.gitbook.io/deep-dive/future-javascript/destructuring#obujekutono)
|
2
ドキュメントのURLを追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -43,3 +43,11 @@
|
|
43
43
|
const { user: {id} } = userex // id = 1
|
44
44
|
|
45
45
|
```
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
2020.10.15 追記)
|
50
|
+
|
51
|
+
TypeScriptの分割代入について
|
52
|
+
|
53
|
+
https://typescript-jp.gitbook.io/deep-dive/future-javascript/destructuring#obujekutono
|
1
参考ソースの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,15 +30,15 @@
|
|
30
30
|
|
31
31
|
```TypeScript
|
32
32
|
|
33
|
+
// ソース1の続き
|
34
|
+
|
33
35
|
type UserEx = {
|
34
36
|
|
35
37
|
user: User
|
36
38
|
|
37
|
-
flag: boolean
|
38
|
-
|
39
39
|
}
|
40
40
|
|
41
|
-
const userex: UserEx = { user: user
|
41
|
+
const userex: UserEx = { user: user }
|
42
42
|
|
43
43
|
const { user: {id} } = userex // id = 1
|
44
44
|
|