X Tutup
Skip to content

Response.json() of type Object #5636

@NTag

Description

@NTag

Hello,

Call json() on a Response objet returns a type Object. I think it comes from here: https://github.com/angular/angular/blob/master/modules/angular2/src/facade/lang.ts#L333

Shouldn't the method return an Any type? Because, when you try to access a property of this object, you get a Typescript error: Property 'access_token' does not exist on type 'Object'.

Thank you very much,
Basile

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

      X Tutup