docs: correct decorator reflect-metadata example. PR832

This commit is contained in:
zhongsp 2019-03-24 09:41:11 +08:00
parent d377cd6a11
commit 7eb096143c

View File

@ -471,7 +471,7 @@ function validate<T>(target: any, propertyKey: string, descriptor: TypedProperty
if (!(value instanceof type)) {
throw new TypeError("Invalid type.");
}
set(value);
set.call(target, value);
}
}
```