diff --git a/lib/mdn-bob.ts b/lib/mdn-bob.ts index cfb69e052..cf055260d 100644 --- a/lib/mdn-bob.ts +++ b/lib/mdn-bob.ts @@ -40,7 +40,7 @@ function doWebpack() { return new Promise((resolve, reject) => { webpack( webpackConfig, - (err: Error | undefined, stats: Stats | undefined) => { + (err: Error | null | undefined, stats: Stats | undefined) => { if (!stats) { throw new Error("MDN-BOB: Stats were not delivered by webpack"); }