Running Prettier on most files
This commit is contained in:
@ -1,28 +1,26 @@
|
||||
export class SkipEvent {
|
||||
_fallbackMethod = (): SkipEvent => {
|
||||
return SkipEvent.createSkipProxy();
|
||||
};
|
||||
|
||||
_fallbackMethod = (): SkipEvent => {
|
||||
return SkipEvent.createSkipProxy();
|
||||
}
|
||||
|
||||
public static createSkipProxy = (): SkipEvent => {
|
||||
const instance = new SkipEvent();
|
||||
return new Proxy(instance, {
|
||||
// @ts-ignore
|
||||
get(target, propKey, receiver) {
|
||||
// @ts-ignore
|
||||
if (typeof target[propKey] === 'undefined') {
|
||||
return target._fallbackMethod;
|
||||
}
|
||||
// @ts-ignore
|
||||
return target[propKey];
|
||||
},
|
||||
// @ts-ignore
|
||||
set(target, propKey, value, receiver) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
public static createSkipProxy = (): SkipEvent => {
|
||||
const instance = new SkipEvent();
|
||||
return new Proxy(instance, {
|
||||
// @ts-ignore
|
||||
get(target, propKey, receiver) {
|
||||
// @ts-ignore
|
||||
if (typeof target[propKey] === "undefined") {
|
||||
return target._fallbackMethod;
|
||||
}
|
||||
// @ts-ignore
|
||||
return target[propKey];
|
||||
},
|
||||
// @ts-ignore
|
||||
set(target, propKey, value, receiver) {
|
||||
return false;
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
out = (): void => {}
|
||||
|
||||
}
|
||||
out = (): void => {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user