Skip to content

Commit

Permalink
fix export * type to export type * in patch-ts (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosskevin authored Jan 19, 2025
1 parent 8e15117 commit 902f243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patch-ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ for (const file of files) {
const cts = file.replace('.d.ts', '.d.cts')

// Add type qualifiers in annotations
shell.sed('-i', /(import|export [*{])\s+(?!type\b)/, '$1 type ', file)
shell.sed('-i', /(import|export )*\s+(?!type\b)/, '$1 type ', file)
// Remove .js extensions
shell.sed('-i', /from '(\.[^.]+)\.js'/, "from '$1'", file)

Expand Down

0 comments on commit 902f243

Please sign in to comment.