質問編集履歴
1
Typeの修正を行いました
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,6 +11,8 @@
|
|
11
11
|
point: 'A' | 'B' | 'C'
|
12
12
|
|
13
13
|
average: number
|
14
|
+
|
15
|
+
something: T
|
14
16
|
|
15
17
|
}
|
16
18
|
|
@@ -34,7 +36,7 @@
|
|
34
36
|
|
35
37
|
export const Report = ({point, average, fn}: Props) => {
|
36
38
|
|
37
|
-
const status =
|
39
|
+
const status = {} // something object
|
38
40
|
|
39
41
|
fn(status)
|
40
42
|
|
@@ -74,7 +76,7 @@
|
|
74
76
|
|
75
77
|
|
76
78
|
|
77
|
-
export const Report = ({..., fn}: Props) => {
|
79
|
+
export const ReportCard = ({..., fn}: Props) => {
|
78
80
|
|
79
81
|
// something process
|
80
82
|
|
@@ -108,7 +110,7 @@
|
|
108
110
|
|
109
111
|
```
|
110
112
|
|
111
|
-
Type 'Status<English | Mathmatic>' is not assignable to type 'Status<English>'.
|
113
|
+
Type 'Status<English | Mathmatic | Art | Physical>' is not assignable to type 'Status<English>'.
|
112
114
|
|
113
115
|
```
|
114
116
|
|