|
function wrapMethod(descriptor, checks) { |
|
return wrapValue(descriptor, (...args) => { |
|
assertArgs(checks, args); |
|
return descriptor.value(...args); |
|
}); |
Should these lines be like this?
function wrapMethod(descriptor, checks) {
return wrapValue(descriptor, (...args) => {
assertArgs(checks, args);
descriptor.value = function() => {
return descriptor.value(...args);
};
});
Only something like this works in my TypeScript app, or I will get wrong this:

RuntimeTypeChecks/src/index.ts
Lines 70 to 74 in f3d8bb5
Should these lines be like this?
Only something like this works in my TypeScript app, or I will get wrong
this: