Skip to content

Type Error with json.arrayOf #6

@jeremy-coleman

Description

@jeremy-coleman

I'm having problems with the json.arrayOf,

even with copy/pasting the example,

class FancyItem {
@JSON firstName = "Homer";
@JSON lastName = "Simpson";
}

class HasFancyArray {
@JSON readonly fancyArray = json.arrayOf(FancyItem);
}

I get a type error saying typeof FancyItem is not assignable to type
new () => Partial Disposable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions