Skip to content

Commit 8e427be

Browse files
committed
TypeScriptのバージョンを一旦2.0.2から2.0.0に戻した
1 parent c8a655a commit 8e427be

File tree

5 files changed

+1331
-7
lines changed

5 files changed

+1331
-7
lines changed

articles/index.re

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ C87版から上手に味わいを引き継いだ可愛い表紙をありがと
3838

3939
本書で利用しているTypeScriptコンパイラは次のものです。
4040
#@mapoutput(../node_modules/.bin/tsc -v | sed -e "s/\n//")
41-
Version 2.0.2
41+
Version 2.0.0
4242
#@end
4343

4444
//footnote[js-primer][@<href>{https://github.com/asciidwango/js-primer}]

articles/prepared-to-typescript.re

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $ npm install -g typescript
1717
# 省略
1818
$ tsc -v
1919
#@mapoutput(../node_modules/.bin/tsc -v)
20-
Version 2.0.2
20+
Version 2.0.0
2121
#@end
2222
$ echo "class Sample {}" > sample.ts
2323
$ tsc sample.ts
@@ -55,7 +55,7 @@ package.json
5555
$ npm install --save-dev typescript
5656
$ ./node_modules/.bin/tsc -v
5757
#@mapoutput(../node_modules/.bin/tsc -v)
58-
Version 2.0.2
58+
Version 2.0.0
5959
#@end
6060
//}
6161

@@ -71,7 +71,7 @@ $ npm bin
7171
$PWD/node_modules/.bin 的なパスが表示される
7272
$ $(npm bin)/tsc -v
7373
#@mapoutput(../node_modules/.bin/tsc -v)
74-
Version 2.0.2
74+
Version 2.0.0
7575
#@end
7676
//}
7777

articles/typescript-basic.re

+2-2
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ class Animal {
330330
// error TS2511: Cannot create an instance of the abstract class 'Animal'.
331331
// new Animal();
332332
class Cat extends Animal {
333-
constructor() {
334-
super(...arguments);
333+
constructor(...args) {
334+
super(...args);
335335
// プロパティの実装を強制される
336336
this.name = "Cat";
337337
this.poo = "poo...";

0 commit comments

Comments
 (0)