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
Typecheck doesn't pass on the library init. Cannot start running the app
ERROR in node_modules/getstream/src/utils.ts:103:15
TS2769: No overload matches this call.
Overload 1 of 2, '(o: {}): string[]', gave the following error.
Argument of type 'T' is not assignable to parameter of type '{}'.
Overload 2 of 2, '(o: object): string[]', gave the following error.
Argument of type 'T' is not assignable to parameter of type 'object'.
101 | const cloned = {};
102 |
> 103 | Object.keys(obj).forEach((k) => {
| ^^^
104 | // @ts-expect-error
105 | cloned[k] = replaceStreamObjects(obj[k]);
106 | });
**To Reproduce**
Typecheck doesn't pass on the library init. Cannot start running the app
Versions
"getstream": "^8.1.0",
"react": "^18.0.0",
"typescript": "^4.9.4",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.40.0",
Simple fix solution in the SDK:
In getstream/src/utils.ts
The text was updated successfully, but these errors were encountered: