Skip to content

Commit

Permalink
improve typescript recommendation (vercel#3262)
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra authored Jan 12, 2023
1 parent 71822fe commit b48a7d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/turbopack-ecmascript/src/references/esm/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ async fn expand_star_exports(root_asset: EcmascriptChunkPlaceableVc) -> Result<S
category: StringVc::cell("analyze".to_string()),
message: StringVc::cell(format!(
"export * used with module {} which has no exports\nTypescript only: Did you \
want to import only types with `export type * from \"...\"`?",
want to export only types with `export type {{ ... }} from \"...\"`?",
// TODO recommend export type * from "..." once https://github.com/microsoft/TypeScript/issues/37238 is implemented
asset.path().to_string().await?
)),
path: asset.path(),
Expand Down

0 comments on commit b48a7d5

Please sign in to comment.