Skip to content

Docs: allowUnreachableCode described backwards and with misleading default #727

@mattdmorgan

Description

@mattdmorgan

Page URL: https://www.typescriptlang.org/v2/en/tsconfig#allowUnreachableCode

Issue: First sentence is "Set to false to disable warnings about unreachable code", but instead you set the value to true to disable warnings. Also, the default is described as being false, but the actual default is undefined which as of microsoft/TypeScript#24026 has different behavior: undefined gives warnings about unreachable code, while false gives errors.

The same two issues apply to the allowUnusedLabels documentation just below it.

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