Skip to content

deserialize arrays #12

Open
Open
@Geschan

Description

@Geschan

I tried to deserialize an array of items like this:

this.authHttp.get('/items')
  .map(response => deserialize(Item[], response.json()))
  .catch(this.handleError)
  .subscribe(data => console.log(data));

But the compiler didn't like it. How can I fix this?

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