Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Playground: incorrect type causing false negatives #4493

Closed
Assignees
armano2
Labels
bugSomething isn't workinghas prthere is a PR raised to close thispackage: websiteIssues related to the @typescript-eslint website
@bradzacher

Description

@bradzacher
/* eslint "@typescript-eslint/prefer-readonly-parameter-types": "error" */functionfoo(arg:string[]){}

playground link

This should error because the array is mutable. But it doesn't.

Debugging a bit - for some reason the type ofarg is{}.
Maybe there's a config issue somewhere?

cc@armano2

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghas prthere is a PR raised to close thispackage: websiteIssues related to the @typescript-eslint website

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp