Skip to content

Type Error with json.arrayOf #6

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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