Skip to content

Commit

Permalink
Merge pull request #274 from belgattitude/imrov-typings
Browse files Browse the repository at this point in the history
  • Loading branch information
martpie committed Sep 7, 2022
2 parents 0d44363 + 60abe2f commit be07e8c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/next-transpile-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ const createWebpackMatcher = (modulesToTranspile, logger = createLogger(false))
* @param {{resolveSymlinks?: boolean, debug?: boolean, __unstable_matcher?: (path: string) => boolean}} options
*/
const withTmInitializer = (modules = [], options = {}) => {
/**
* @template T
* @param { T } nextConfig
* @returns { T | undefined }
*/
const withTM = (nextConfig = {}) => {
if (modules.length === 0) return nextConfig;

Expand Down

0 comments on commit be07e8c

Please sign in to comment.