Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
constfoo={bar:1asconst};constbar:number=foo.bar;// Currently fixed toconst{ bar}=foo;
- Fixer should change code to
const { bar }: { bar: number } = foo, removing type annotation is unsafe - I think it would make sense to add an option to disable rule in this case, annotations on destructured variables aren't very pretty