Skip to content

Commit aaad8dc

Browse files
Update doc comment w suggested
Co-authored-by: Eric Hwang <[email protected]>
1 parent 2d2de09 commit aaad8dc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Model/fn.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,8 @@ declare module './Model' {
9090
* It's not recommended to use this in most cases. Instead, to share reactive functions,
9191
* have the components import a shared function to pass to `model.start`.
9292
*
93-
* @deprecated The use of named funcitons is deprecated. With typescript and modern tooling
94-
* you get better type information, code navigation, and refactoring support that is lost
95-
* when using named functions.
93+
* @deprecated The use of named functions is deprecated. Instead, to share a reactive function,
94+
* you should export it and then require/import it into each file that needs to use it.
9695
*
9796
* @param name name of the function to define
9897
* @param fn either a reactive function that accepts inputs and returns output, or

0 commit comments

Comments
 (0)