Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[request] allow `export type * from`

See original GitHub issue

Search Terms

export type


TS1383: Only named exports may use ‘export type’.

allow export type * from

Use Cases

export type * from './lib';
export type * from 'typedarray-dts';



My suggestion meets these guidelines:

  • This wouldn’t be a breaking change in existing TypeScript/JavaScript code
  • This wouldn’t change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn’t a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
  • This feature would agree with the rest of TypeScript’s Design Goals.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:135
  • Comments:23 (8 by maintainers)

github_iconTop GitHub Comments

andrewbranchcommented, Oct 20, 2022

I’m planning to investigate implementing this in the release after 4.9.

aminyacommented, Mar 1, 2021

In addition to all the usecases that export type has, not having it is an inconsistency in the TypeScript language that should be fixed.

P.S: the number of upvotes and likes shows the community opinion. I think “Awaiting more feedback” label should be removed. @RyanCavanaugh

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - TypeScript 3.8
import type only imports declarations to be used for type annotations and declarations. It always gets fully erased, so there's no remnant of...
Read more >
Export data from an HTTP source app - Celigo Help Center
This article describes the options available for exporting data from an HTTP source application or configuring an export for async...
Read more >
New-MailboxExportRequest (ExchangePowerShell)
You can create more than one mailbox export request per mailbox, and each mailbox export ... To save exported PST files to the...
Read more >
export - JavaScript - MDN Web Docs
The export declaration is used to export values from a JavaScript module. Exported values can then be imported into other programs with the ......
Read more >
Understanding module.exports and exports in Node.js
The CommonJS (CJS) format is used in Node.js and uses require and ... Now let's look at how to create our own module...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found