Skip to content

Commit dfd1bdf

Browse files
committed
feat: 🚀 Export type definitions withExportImages
1 parent 45052ce commit dfd1bdf

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

‎src/index.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import withExportImage from './withExportImage'
1+
import withExportImages from './withExportImages'
22

33
export type { Config } from './utils/getConfig'
4+
export type { WithExportImages } from './withExportImages'
45

5-
module.exports = withExportImage
6+
module.exports = withExportImages

‎src/withExportImage.ts renamed to ‎src/withExportImages.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { NextConfig } from 'next'
44

55
import copyConfig from './utils/copyConfig'
66

7-
const withExportImages = (nextConfig: NextConfig): NextConfig => {
7+
const withExportImages = (nextConfig: NextConfig = {}): NextConfig => {
88
copyConfig(path.resolve(process.cwd(), 'export-images.config.js'))
99

1010
const customConfig: NextConfig = {
@@ -33,4 +33,6 @@ const withExportImages = (nextConfig: NextConfig): NextConfig => {
3333
return Object.assign({}, nextConfig, customConfig)
3434
}
3535

36+
export type WithExportImages = typeof withExportImages
37+
3638
export default withExportImages

0 commit comments

Comments
 (0)