Skip to content

Commit 598f21c

Browse files
committed
Added missing typecast in JsonSerializer.deserialize()
1 parent 9e9baff commit 598f21c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serializers/JsonSerializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ export class JsonSerializer implements Serializer {
2020
* @inheritdoc
2121
*/
2222
deserialize<T>(text: string) {
23-
return JSON.parse(text);
23+
return JSON.parse(text) as T;
2424
}
2525
}

0 commit comments

Comments
 (0)