Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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