Skip to content

Move this logic for defineProp to semotus #8

@sshankar19

Description

@sshankar19

src/serializer.ts
var type = defineProp.type;
// Because semotus can serialize only the shadow properties we try and restore them
var pojoProp = (type && typeof pojo['' + propb] !== 'undefined') ? '' + propb : propb;

if semotus needs these shadow properties to be restored, the functionality should be moved to semotus. We should clearly segregate the responsibilities of these libraries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions