Skip to content

Commit

Permalink
added check for type exist in object converting
Browse files Browse the repository at this point in the history
  • Loading branch information
Umed Khudoiberdiev committed Mar 29, 2016
1 parent 668d9b8 commit 3ef62d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "serializer.ts",
"version": "0.0.10",
"version": "0.0.11",
"description": "Proper serialization and deserialization raw json objects to classes in Typescript",
"license": "Apache-2.0",
"readmeFilename": "README.md",
Expand Down
2 changes: 1 addition & 1 deletion src/Serializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class Serializer {
newObject[key] = object[key];
}

} else if (object[key] instanceof Object || type) {
} else if (object[key] instanceof Object && type) {
// if (!type && operationType === "deserialization")
// throw new TypeMissingError(cls, key);

Expand Down

0 comments on commit 3ef62d9

Please sign in to comment.