Skip to content

Try-catch statements should be a target of noUnusedParameters #19601

Closed
@falsandtru

Description

@falsandtru

Should use the optional catch clause instead.

TypeScript Version: master

Code

try {
}
catch (_) {
}

Expected behavior:

error

Actual behavior:

pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeclinedThe issue was declined as something which matches the TypeScript visionIn DiscussionNot yet reached consensusSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions