Skip to content

Commit

Permalink
fix(utils): failing TS check (#537)
Browse files Browse the repository at this point in the history
* Update utils.ts
  • Loading branch information
nima-lighthouse authored Feb 14, 2023
1 parent 655f197 commit bb21585
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ function replaceStreamObjects<T, V>(obj: T): V {
if (typeof obj.ref === 'function') return obj.ref();

const cloned = {};
Object.keys(obj).forEach((k) => {

Object.getOwnPropertyNames(obj).forEach((k) => {
// @ts-expect-error
cloned[k] = replaceStreamObjects(obj[k]);
});
Expand Down

0 comments on commit bb21585

Please sign in to comment.