Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

deprecation rule should consider which overload is being used for warning #3159

Closed
Jessidhia opened this issue Aug 24, 2017 · 1 comment
Closed
Milestone

Comments

@Jessidhia
Copy link

Bug Report

  • TSLint version: 5.6.0
  • TypeScript version: 2.4.2
  • Running TSLint via: CLI

TypeScript code being linted

import $ from 'jquery'
$().toggleClass('className')

with tslint.json configuration:

{ "rules": { "deprecation": true } }

Actual behavior

deprecation: toggleClass is deprecated: 3.0

Expected behavior

Only the toggleClass(state?: boolean): this overload should cause the deprecation warning, as that is the only overload that is @deprecated.

@ajafff
Copy link
Contributor

ajafff commented Aug 24, 2017

That's already fixed on master by #2883. I try to get a release out this week.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants