Skip to content

Commit

Permalink
fix: fixed typing
Browse files Browse the repository at this point in the history
  • Loading branch information
DuCanhGH committed Nov 30, 2022
1 parent 721dcd8 commit 2c4cb17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ import { Fallbacks, PluginOptions } from "./types";
const getRevision = (file: fs.PathOrFileDescriptor) =>
crypto.createHash("md5").update(fs.readFileSync(file)).digest("hex");

export default (pluginOptions: PluginOptions = {}): NextConfig => {
const withPWAInit = (
pluginOptions: PluginOptions = {}
): ((_: NextConfig) => NextConfig) => {
return (nextConfig: NextConfig = {}) => ({
...nextConfig,
...({
Expand Down Expand Up @@ -377,4 +379,5 @@ export default (pluginOptions: PluginOptions = {}): NextConfig => {
});
};

export default withPWAInit;
export * from "./types";

0 comments on commit 2c4cb17

Please sign in to comment.