Skip to content

Commit

Permalink
docs(decorator): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
w-l-l committed Dec 4, 2022
1 parent ef2f878 commit add0bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/decorator.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ C.prototype.toString = trace(C.prototype.toString);
上面示例中,`@trace`装饰`toString()`方法,就相当于修改了该方法。
方式装饰器使用 TypeScript 描述类型如下。
方法装饰器使用 TypeScript 描述类型如下。
```typescript
type ClassMethodDecorator = (value: Function, context: {
Expand Down

0 comments on commit add0bba

Please sign in to comment.