You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if options.skipHandler exists, it will be deleted, fair enough
target.actions assignation:
if options exists, then { ...options } ELSE check options.skipHandler here is the error, because if options.skipHandler exist is deleted in previous if and you are checking the "else" condition of "if (options)" then, the else condition is that "options" is not defined, then it is not possible that "options.skipHandler" could be defined.
This is giving me a typescript error:
TS2339: Property 'skipHandler' does not exist on type 'never'.
There are some other errors with "noImplicitAny: true" in tsconfig.json that avoid build in projects that are using moleculer-decorators with that config in tsconfig.json, maybe could be useful to add this compilerOptions:
the error is in ternary as I said in the first message, you check "if" options exist, then in else (where "options" does not exists) you call "options.skipHandler"
This is the error. In "else" you could not use "options" because it does not exist
I have a doubt with Action decorator, here is the source code:
first
if
:target.actions assignation:
options
exists, then { ...options } ELSE checkoptions.skipHandler
here is the error, because ifoptions.skipHandler
exist is deleted in previousif
and you are checking the "else" condition of "if (options)" then, the else condition is that "options" is not defined, then it is not possible that "options.skipHandler" could be defined.This is giving me a typescript error:
TS2339: Property 'skipHandler' does not exist on type 'never'.
There are some other errors with "noImplicitAny: true" in tsconfig.json that avoid build in projects that are using moleculer-decorators with that config in tsconfig.json, maybe could be useful to add this compilerOptions:
The text was updated successfully, but these errors were encountered: