Skip to content

Commit

Permalink
remove unnecessary declare module 'esbuild'
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Mar 7, 2024
1 parent 999f1fb commit a526b14
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/ts-type-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,7 @@ async function main() {
const tsc = path.join(__dirname, 'node_modules', 'typescript', 'lib', 'tsc.js')
const esbuild_d_ts = path.join(testDir, 'node_modules', 'esbuild', 'index.d.ts')
fs.mkdirSync(path.dirname(esbuild_d_ts), { recursive: true })
fs.writeFileSync(esbuild_d_ts, `
declare module 'esbuild' {
${types.replace(/export declare/g, 'export')}
}
`)
fs.writeFileSync(esbuild_d_ts, types)
let allTestsPassed = true

// Check tests without errors
Expand Down

0 comments on commit a526b14

Please sign in to comment.