diff options
author | ab <abdullah_ahmed@brown.edu> | 2019-08-12 12:24:51 -0400 |
---|---|---|
committer | ab <abdullah_ahmed@brown.edu> | 2019-08-12 12:24:51 -0400 |
commit | 73ac98d53b80230bb085d71b61254f6c24a3e397 (patch) | |
tree | 43b13e482c29ce6a3db1108aca056581495303d7 /src/client/util/SerializationHelper.ts | |
parent | b8ab5a823ae22b021c09dfd713b77211a51b3eae (diff) | |
parent | 3aea955ae56c1aa0611de09c4a013e9dc5c86c42 (diff) |
merged
Diffstat (limited to 'src/client/util/SerializationHelper.ts')
-rw-r--r-- | src/client/util/SerializationHelper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/SerializationHelper.ts b/src/client/util/SerializationHelper.ts index 13302be21..ff048f647 100644 --- a/src/client/util/SerializationHelper.ts +++ b/src/client/util/SerializationHelper.ts @@ -34,7 +34,7 @@ export namespace SerializationHelper { return json; } - export async function Deserialize(obj: any, cb: (val: any) => void = emptyFunction): Promise<any> { + export async function Deserialize(obj: any): Promise<any> { if (obj === undefined || obj === null) { return undefined; } @@ -57,7 +57,7 @@ export namespace SerializationHelper { } const type = serializationTypes[obj.__type]; - const value = await new Promise(res => cb(deserialize(type.ctor, obj, (err, result) => res(result)))); + const value = await new Promise(res => deserialize(type.ctor, obj, (err, result) => res(result))); if (type.afterDeserialize) { await type.afterDeserialize(value); } |