teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

型定義ミス

2021/11/08 07:41

投稿

fijino
fijino

スコア136

title CHANGED
File without changes
body CHANGED
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  type BBBB<T> = {
7
- [T in keyof T]: string | boolean
7
+ [P in keyof T]: string | boolean
8
8
  }
9
9
 
10
10
  function func<T extends AAAA>(input : T): BBBB<T> {

1

余計な文字を削除

2021/11/08 07:41

投稿

fijino
fijino

スコア136

title CHANGED
File without changes
body CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  type BBBB<T> = {
7
7
  [T in keyof T]: string | boolean
8
- }https://teratail.com/questions/input#
8
+ }
9
9
 
10
10
  function func<T extends AAAA>(input : T): BBBB<T> {
11
11
  :