Add minification

This commit is contained in:
schmelczerandras 2020-10-07 14:13:22 +02:00
parent b3da27e73b
commit d34f25295c
14 changed files with 142 additions and 94 deletions

View file

@ -1,4 +1,4 @@
export const serialize = (object): string => {
export const serialize = (object: any): string => {
return JSON.stringify(object, (_, value) => {
if (value?.__serializable_type) {
return [value.__serializable_type, ...value.toArray()];