Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add import type and export type support to TypeScript #11171

Merged
merged 5 commits into from Mar 16, 2020

Commits on Mar 2, 2020

  1. Import type for TS (#11053)

    * Add parser support for type only imports in TS
    
    Co-authored-by: Brian Ng <bng412@gmail.com>
    Co-authored-by: Raja Sekar <rajasekarm.dev@gmail.com>
    Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
    Co-authored-by: Kai Cataldo <kai@kaicataldo.com>
    
    * Add transform and printer test for type only imports in TS
    
    Co-authored-by: Brian Ng <bng412@gmail.com>
    Co-authored-by: Raja Sekar <rajasekarm.dev@gmail.com>
    Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
    Co-authored-by: Kai Cataldo <kai@kaicataldo.com>
    
    * Update packages/babel-parser/src/plugins/typescript/index.js
    
    * Fix flow
    
    Co-authored-by: Brian Ng <bng412@gmail.com>
    Co-authored-by: Raja Sekar <rajasekar.murugan@omio.com>
    Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
    Co-authored-by: Kai Cataldo <kai@kaicataldo.com>
    5 people committed Mar 2, 2020
    Copy the full SHA
    a1a889b View commit details
    Browse the repository at this point in the history
  2. Implement "export type {}" (#11122)

    * [typescript] Implement "export type {}"
    
    * test: add test on default-type-with-typescript
    
    Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
    nicolo-ribaudo and JLHwung committed Mar 2, 2020
    Copy the full SHA
    bcb3721 View commit details
    Browse the repository at this point in the history
  3. Add "exportKind: type" when needed with TS (#11157)

    * Add "exportKind: type" to TS type export declratation
    
    Co-authored-by: Henry Zhu <smiley.we@gmail.com>
    Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
    Co-authored-by: Siddhant N Trivedi <sidntrivedi012@gmail.com>
    
    * Add test to @babel/generator
    
    Co-authored-by: Henry Zhu <hi@henryzoo.com>
    Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
    Co-authored-by: Siddhant N Trivedi <sidntrivedi012@gmail.com>
    4 people committed Mar 2, 2020
    Copy the full SHA
    4ade578 View commit details
    Browse the repository at this point in the history
  4. Add onlyRemoveTypeImports option to transform-typescript (#11173)

    * [plugin-transform-typescript]: onlyExplicitTypeImports
    
    * onlyExplicitTypeImports -> onlyRemoveTypeImports
    
    * Add test for exceptions
    kaicataldo authored and nicolo-ribaudo committed Mar 2, 2020
    Copy the full SHA
    1a16053 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    c90a132 View commit details
    Browse the repository at this point in the history