Skip to content

Commit

Permalink
Merge pull request ruanyf#1144 from w-l-l/patch-4
Browse files Browse the repository at this point in the history
docs(decorator): fix typo
  • Loading branch information
ruanyf committed Dec 7, 2022
2 parents ef2f878 + add0bba commit 1623fdc
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 1623fdc

Please sign in to comment.