Skip to content

Commit

Permalink
#504: removed unnecessary typing (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
basmasking authored Mar 18, 2024
1 parent 1efbf46 commit 3fd24eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/serialization/src/serializers/ClassSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ export default class ClassSerializer extends ValueSerializer
throw new InvalidClass(object.name);
}

const args = await this.#deserializeConstructor(clazz as Function, object.args);
const args = await this.#deserializeConstructor(clazz, object.args);

const instance = reflector.createInstance(clazz as Function, args) as SerializableObject;
const instance = reflector.createInstance(clazz, args) as SerializableObject;

for (const name in object.fields)
{
Expand Down

0 comments on commit 3fd24eb

Please sign in to comment.