Skip to content

JSON.parse is not supposed to return any #26993

Closed
@alepee

Description

@alepee

TypeScript Version: 3.1.0-dev.20180828
Search Terms: JSON parse type any
Code

JSON.parse // is expected to return "any"

Expected behavior:
JSON parse spec expect it to return object | number | string | boolean | null

Actual behavior:
JSON parse implementation at lib/lib.es5.d.ts expect it to return any

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions