docs: correct decorator reflect-metadata example. PR832
This commit is contained in:
parent
d377cd6a11
commit
7eb096143c
@ -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);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user