diff --git a/index.d.ts b/index.d.ts index f7d3a23..5e201b6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -3,6 +3,8 @@ Modifies the `to` function to mimic the `from` function. Returns the `to` functi `name`, `displayName`, and any other properties of `from` are copied. The `length` property is not copied. Properties present in `to` but not in `from` are deleted. Prototype, class, and inherited properties are copied. +`to.String()` will return the same as `from.toString()` but prepended with a `Wrapped with to()` comment. + @param to - Mimicking function. @param from - Function to mimic. @returns The modified `to` function. diff --git a/readme.md b/readme.md index e7b2532..7a4f032 100644 --- a/readme.md +++ b/readme.md @@ -48,7 +48,7 @@ Modifies the `to` function to mimic the `from` function. Returns the `to` functi `name`, `displayName`, and any other properties of `from` are copied. The `length` property is not copied. Properties present in `to` but not in `from` are deleted. Prototype, class, and inherited properties are copied. -`to.String()` will return the same as `from.toString()` but prepended with `/* Wrapped with to() */ `. +`to.String()` will return the same as `from.toString()` but prepended with a `Wrapped with to()` comment. #### to