Skip to content

Commit

Permalink
fix(npm/build): special case when fetcher is the only possible argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexcited authored Jul 25, 2024
1 parent 9781906 commit baec644
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions npm/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ exports.load_async = async function () {

// Make every fetcher optional by adding a default fetcher (and the type)
content = content.replace(
/, fetcher: Function\)/g,
`, fetcher?: Fetcher)`
/fetcher: Function\)/g,
`fetcher?: Fetcher)`
);
console.info("[D.TS]: Typed 'fetcher' and made it optional.");

Expand Down

0 comments on commit baec644

Please sign in to comment.