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
I am getting the following error, while trying to use the package:
error TS2345: Argument of type 'null' is not assignable to parameter of type 'Record<string, any> | PromiseLike<Record<string, any>>'
It happens when the project is compiled as part of NestJs applciation.
Basically, it says that json has a wrong type, which was deducted from value assigned to it (an it is only null). While function response never expects null as return type.
Can you modify it to something like: resolve(json ?? {});?
The text was updated successfully, but these errors were encountered:
I am getting the following error, while trying to use the package:
It happens when the project is compiled as part of NestJs applciation.
Basically, it says that
json
has a wrong type, which was deducted from value assigned to it (an it is onlynull
). While function response never expectsnull
as return type.Can you modify it to something like:
resolve(json ?? {});
?The text was updated successfully, but these errors were encountered: