File tree 5 files changed +1331
-7
lines changed
5 files changed +1331
-7
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ C87版から上手に味わいを引き継いだ可愛い表紙をありがと
38
38
39
39
本書で利用しているTypeScriptコンパイラは次のものです。
40
40
#@mapoutput (../node_modules/.bin /tsc -v | sed -e " s/\n //" )
41
- Version 2.0.2
41
+ Version 2.0.0
42
42
#@end
43
43
44
44
// footnote[js-primer][@<href>{https://github.com/asciidwango/js-primer}]
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ $ npm install -g typescript
17
17
# 省略
18
18
$ tsc -v
19
19
#@mapoutput (../node_modules/.bin /tsc -v)
20
- Version 2.0.2
20
+ Version 2.0.0
21
21
#@end
22
22
$ echo " class Sample {}" > sample.ts
23
23
$ tsc sample.ts
@@ -55,7 +55,7 @@ package.json
55
55
$ npm install --save-dev typescript
56
56
$ ./node_modules/.bin /tsc -v
57
57
#@mapoutput (../node_modules/.bin /tsc -v)
58
- Version 2.0.2
58
+ Version 2.0.0
59
59
#@end
60
60
// }
61
61
@@ -71,7 +71,7 @@ $ npm bin
71
71
$PWD/node_modules/.bin 的なパスが表示される
72
72
$ $(npm bin)/tsc -v
73
73
#@mapoutput (../node_modules/.bin /tsc -v)
74
- Version 2.0.2
74
+ Version 2.0.0
75
75
#@end
76
76
// }
77
77
Original file line number Diff line number Diff line change @@ -330,8 +330,8 @@ class Animal {
330
330
// error TS2511: Cannot create an instance of the abstract class 'Animal'.
331
331
// new Animal();
332
332
class Cat extends Animal {
333
- constructor () {
334
- super (...arguments );
333
+ constructor (...args ) {
334
+ super (...args );
335
335
// プロパティの実装を強制される
336
336
this .name = " Cat" ;
337
337
this .poo = " poo..." ;
You can’t perform that action at this time.
0 commit comments