fix: minor issue

This commit is contained in:
Zhicheng Wang 2017-08-05 22:41:26 +08:00
parent 36206ac2cf
commit 2e97123611
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ Remove most of the
[type declarations](https://www.typescriptlang.org/docs/handbook/basic-types.html), [type declarations](https://www.typescriptlang.org/docs/handbook/basic-types.html),
such as `:string` and `:boolean` such as `:string` and `:boolean`
but **keep the constructor parameter types, which are used for dependency injection**. but **keep the constructor parameter types, which are used for dependency injection**.
_TypeScript_ 翻译到 _带装饰器的 ES6_ 时,移除了[类属性访问修饰符](http://www.typescriptlang.org/docs/handbook/classes.html#public-private-and-protected-modifiers),如`public`和`private`。 _TypeScript_ 翻译到 _带装饰器的 ES6_ 时,移除了[类属性访问修饰符](http://www.typescriptlang.org/docs/handbook/classes.html#public-private-and-protected-modifiers),如`public`和`private`。
移除了大部分的[类型声明](https://www.typescriptlang.org/docs/handbook/basic-types.html),如`:string`和`:boolean`。 移除了大部分的[类型声明](https://www.typescriptlang.org/docs/handbook/basic-types.html),如`:string`和`:boolean`。
但**保留了用于依赖注入的构造函数参数类型**。 但**保留了用于依赖注入的构造函数参数类型**。