-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
RuntimeTypeChecks/src/index.ts
Lines 70 to 74 in f3d8bb5
| 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:
Metadata
Metadata
Assignees
Labels
No labels
