You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
Currently (with comments added to explain the issue):
functionvalidate<T>(target: any,propertyKey: string,descriptor: TypedPropertyDescriptor<T>){letset=descriptor.set;descriptor.set=function(value: T){lettype=Reflect.getMetadata("design:type",target,propertyKey);// "target" should be "this"if(!(valueinstanceoftype)){thrownewTypeError("Invalid type.");}set.call(target,value);// "target" should be "this"}}
We should use this instead of target in those two lines with comments. I will make a PR for it later.
The text was updated successfully, but these errors were encountered:
Currently (with comments added to explain the issue):
We should use
this
instead oftarget
in those two lines with comments. I will make a PR for it later.The text was updated successfully, but these errors were encountered: