質問編集履歴
3
訳を追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,6 +9,10 @@
|
|
9
9
|
Do you need to change your target library?
|
10
10
|
Try changing the 'lib' compiler option to 'es2017' or later.
|
11
11
|
```
|
12
|
+
---
|
13
|
+
訳
|
14
|
+
文字列リテラルには「padStart」なんてプロパティはねえよ
|
15
|
+
ターゲットライブラリーを変えたいならコンパイラーオプション「lib」を「es2017」以降にしてくれ
|
12
16
|
|
13
17
|
### 該当のソースコード
|
14
18
|
|
2
文法の編集
title
CHANGED
File without changes
|
body
CHANGED
@@ -26,8 +26,8 @@
|
|
26
26
|
"target": "es2016",
|
27
27
|
"lib": [
|
28
28
|
"es2017",
|
29
|
-
"dom"
|
29
|
+
"dom",
|
30
|
-
"scripthost"
|
30
|
+
"scripthost",
|
31
31
|
],
|
32
32
|
// ...
|
33
33
|
}
|
1
誤字脱字
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
|
20
20
|
### 試したこと
|
21
21
|
|
22
|
-
StackOverflowにtsconfig.jsonの"lib"になんか追加すればいいとあったのでコピペしてみたんですが
|
22
|
+
StackOverflowにtsconfig.jsonの"lib"になんか追加すればいいとあったのでコピペしてみたんですが直りません。
|
23
23
|
[https://stackoverflow.com/questions/52293010/typescript-tells-me-property-padstart-does-not-exist-on-type-string-why](url)
|
24
24
|
```tsconfig.json
|
25
25
|
"compilerOptions": {
|