Skip to content

Commit

Permalink
Update doc comment w suggested
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Hwang <ericyhwang@users.noreply.github.com>
  • Loading branch information
craigbeck and ericyhwang authored Jul 19, 2024
1 parent 2d2de09 commit aaad8dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Model/fn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ declare module './Model' {
* It's not recommended to use this in most cases. Instead, to share reactive functions,
* have the components import a shared function to pass to `model.start`.
*
* @deprecated The use of named funcitons is deprecated. With typescript and modern tooling
* you get better type information, code navigation, and refactoring support that is lost
* when using named functions.
* @deprecated The use of named functions is deprecated. Instead, to share a reactive function,
* you should export it and then require/import it into each file that needs to use it.
*
* @param name name of the function to define
* @param fn either a reactive function that accepts inputs and returns output, or
Expand Down

0 comments on commit aaad8dc

Please sign in to comment.