Skip to content

tsconfig.json does not allow negative numbers #19551

@ajafff

Description

@ajafff

TypeScript Version: 2.7.0-dev.20171028

Code

// tsconfig.json
{
    "myCustomOption": -1
}

Expected behavior:
No error since negative numbers are valid JSON values.

Actual behavior:
error TS1328: Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions