wix-incubator / vscode-glean

The extension provides refactoring tools for your React codebase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Move type definitions for props and state to new file

kevinbarabash opened this issue · comments

I tried the "move to a new file" command on a component and while it moved the component, it didn't move the type definition for the component's props. Instead it imports the type definition. Unfortunately, the original file wasn't exporting the type definition so the new file needs a little cleanup. I think it'd be better to just move the prop type definition since it's no longer being used in the original file.