Merge pull request #1144 from w-l-l/patch-4

docs(decorator): fix typo
This commit is contained in:
Ruan YiFeng
2022-12-07 19:19:02 +08:00
committed by GitHub
+1 -1
View File
@@ -273,7 +273,7 @@ C.prototype.toString = trace(C.prototype.toString);
上面示例中,`@trace`装饰`toString()`方法,就相当于修改了该方法。
装饰器使用 TypeScript 描述类型如下。
装饰器使用 TypeScript 描述类型如下。
```typescript
type ClassMethodDecorator = (value: Function, context: {