From aaad8dc2666e30c653be2967d46da45c3e9cfbe9 Mon Sep 17 00:00:00 2001 From: Craig Beck Date: Fri, 19 Jul 2024 11:39:45 -0700 Subject: [PATCH] Update doc comment w suggested Co-authored-by: Eric Hwang --- src/Model/fn.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Model/fn.ts b/src/Model/fn.ts index 01b17a88..6d15b9ff 100644 --- a/src/Model/fn.ts +++ b/src/Model/fn.ts @@ -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