Skip to content

Commit

Permalink
Fix types definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jun 12, 2019
1 parent bd0bbba commit fd6e769
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fd6e769

Please sign in to comment.