質問編集履歴

3

削除

2022/02/10 03:23

投稿

hiroki88
hiroki88

スコア66

test CHANGED
File without changes
test CHANGED
@@ -24,6 +24,3 @@
24
24
  }
25
25
  ```
26
26
  ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-02-09/6ba1bc89-2edb-4b12-977e-1c078f18dc02.png)
27
-
28
- 【型引数追加】
29
- ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-02-09/e427e5c5-da6b-4f58-a651-5b7dbc7b16b5.png)

2

追加

2022/02/09 06:44

投稿

hiroki88
hiroki88

スコア66

test CHANGED
File without changes
test CHANGED
@@ -24,3 +24,6 @@
24
24
  }
25
25
  ```
26
26
  ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-02-09/6ba1bc89-2edb-4b12-977e-1c078f18dc02.png)
27
+
28
+ 【型引数追加】
29
+ ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-02-09/e427e5c5-da6b-4f58-a651-5b7dbc7b16b5.png)

1

修正

2022/02/09 06:30

投稿

hiroki88
hiroki88

スコア66

test CHANGED
File without changes
test CHANGED
@@ -5,14 +5,14 @@
5
5
 
6
6
  ```TypeScript
7
7
  type testType = {
8
- id: string
8
+ id: string,
9
9
  name: string,
10
10
  };
11
11
 
12
12
  function test(){
13
13
  const data = {
14
14
  id: "12345",
15
- name: "test"
15
+ name: "test",
16
16
  }
17
17
  if(validation(data)){
18
18
  console.log(`id:${data.id} name:${data.name}`);
@@ -23,4 +23,4 @@
23
23
  return typeof data === "object";
24
24
  }
25
25
  ```
26
- ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-02-09/96034c7f-2e3d-4cd4-b1c5-979a3bb0cbb6.png)
26
+ ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-02-09/6ba1bc89-2edb-4b12-977e-1c078f18dc02.png)