Showing 3 of 5 total issues
Function proxy
has 117 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function proxy() {
return (targetClass: any): any => {
const data: ProxyData = Reflect.getMetadata(metaKey, targetClass);
// If no overrides were set for this class,
// return the unmodified constructor
Function get
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
get < T > (target: T, p: PropertyKey, receiver: any): any {
const override = data.get(p.toString());
if (!override) {
return unproxied[p];
}
Function set
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
set(target: any, p: PropertyKey, value: any, receiver: any): boolean {
const override = data.get(p.toString());
if (!override) {
unproxied[p] = value;
return true;