mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
docs(decorator): fix typo
This commit is contained in:
parent
ef2f878473
commit
add0bba14e
@ -273,7 +273,7 @@ C.prototype.toString = trace(C.prototype.toString);
|
|||||||
|
|
||||||
上面示例中,`@trace`装饰`toString()`方法,就相当于修改了该方法。
|
上面示例中,`@trace`装饰`toString()`方法,就相当于修改了该方法。
|
||||||
|
|
||||||
方式装饰器使用 TypeScript 描述类型如下。
|
方法装饰器使用 TypeScript 描述类型如下。
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
type ClassMethodDecorator = (value: Function, context: {
|
type ClassMethodDecorator = (value: Function, context: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user