File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
- import withExportImage from './withExportImage '
1
+ import withExportImages from './withExportImages '
2
2
3
3
export type { Config } from './utils/getConfig'
4
+ export type { WithExportImages } from './withExportImages'
4
5
5
- module . exports = withExportImage
6
+ module . exports = withExportImages
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import type { NextConfig } from 'next'
4
4
5
5
import copyConfig from './utils/copyConfig'
6
6
7
- const withExportImages = ( nextConfig : NextConfig ) : NextConfig => {
7
+ const withExportImages = ( nextConfig : NextConfig = { } ) : NextConfig => {
8
8
copyConfig ( path . resolve ( process . cwd ( ) , 'export-images.config.js' ) )
9
9
10
10
const customConfig : NextConfig = {
@@ -33,4 +33,6 @@ const withExportImages = (nextConfig: NextConfig): NextConfig => {
33
33
return Object . assign ( { } , nextConfig , customConfig )
34
34
}
35
35
36
+ export type WithExportImages = typeof withExportImages
37
+
36
38
export default withExportImages
You can’t perform that action at this time.
0 commit comments