diff --git a/npm/src/build.ts b/npm/src/build.ts index 5e70f59..f41c506 100644 --- a/npm/src/build.ts +++ b/npm/src/build.ts @@ -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.");