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

Flow types reported as unused in function params with destructuring. #236

Closed
hzoo opened this issue Jan 17, 2016 · 1 comment
Closed

Flow types reported as unused in function params with destructuring. #236

hzoo opened this issue Jan 17, 2016 · 1 comment
Labels

Comments

@hzoo
Copy link
Member

hzoo commented Jan 17, 2016

Ref babel/babel#3275

Example

import type NodePath from "../index";
var a = {
  checkPath({ node, parent }: NodePath): boolean {
  }
}
/babel/packages/babel-traverse/src/path/lib/virtual-types.js
   31:31  error  "NodePath" is defined but never used  no-unused-vars
   38:31  error  "NodePath" is defined but never used  no-unused-vars
  109:23  error  "NodePath" is defined but never used  no-unused-vars
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant