We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2ae0238 + 2f6799a commit ab0073eCopy full SHA for ab0073e
1 file changed
catalyst/src/wrap.ts
@@ -1,6 +1,8 @@
1
/**
2
- * A utility method which wraps a prototype method, ensuring the given function
3
- * is also called as part of the given method name.
+ * A utility method which wraps a method on an object. If the method doesn't
+ * already exist on the object, it is simply assigned. If it does exist then
4
+ * both the new function and the existing function will be called with the same
5
+ * arguments.
6
*
7
* Used in the `controller()` decorator.
8
*/
0 commit comments