Skip to content

noImplicitAny checks don't work for a setter parameter of Object.defineProperty #8410

Closed
@falsandtru

Description

@falsandtru

TypeScript Version:

master

Code

Object.defineProperty({}, '', {
  set(a) { // a is an implicit any type
  }
});

Expected behavior:

error

Actual behavior:

pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptSuggestionAn idea for TypeScriptWorking 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