Skip to content

Commit

Permalink
Update packages/wrangler/src/type-generation.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Pete Bacon Darwin <pete@bacondarwin.com>
  • Loading branch information
dario-piotrowicz and petebacondarwin authored Feb 26, 2024
1 parent a734342 commit 9a9974d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/wrangler/src/type-generation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ function writeDTSFile({
let combinedTypeStrings = "";
if (formatType === "modules") {
combinedTypeStrings += `interface ${envInterface} {${envTypeStructure
.map((value, i) => `${i === 0 ? "\n" : ""}\t${value}`)
.join("\n")}\n}\n${modulesTypeStructure.join("\n")}`;
.map((value) => `\n\t${value}`)
.join("")}\n}\n${modulesTypeStructure.join("\n")}`;
} else {
combinedTypeStrings += `export {};\ndeclare global {\n${envTypeStructure
.map((value) => `\tconst ${value}`)
Expand Down

0 comments on commit 9a9974d

Please sign in to comment.