Skip to content

Commit

Permalink
fix(unplugin-typia/next): make options parameter optional in next fun…
Browse files Browse the repository at this point in the history
…ction

The options parameter in the next() function is now marked as optional using
TypeScript's optional parameter syntax, providing better flexibility when
calling the function without options.
  • Loading branch information
ryoppippi committed Feb 4, 2025
1 parent 9856809 commit 8cfb748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/unplugin-typia/src/next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import type { Options } from './core/options.js';
* );
* ```
*/
function next(nextConfig: NextConfig = {}, options: Options): NextConfig {
function next(nextConfig: NextConfig = {}, options?: Options): NextConfig {
return {
...nextConfig,
webpack(config: Record<string, unknown>, webpackOptions: WebpackConfigContext) {
Expand Down

0 comments on commit 8cfb748

Please sign in to comment.