Skip to content

Properties of type Object only allow POJOs #34

@tskimmett

Description

@tskimmett
// model options
...
SomeProperty: {
   type: Object
}
...

class MyClass {
}

modelInstance.SomeProperty = new MyClass();   // throws error

Should be able to tweak Property.canSetValue (source link) to relax the type checking a bit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions