Skip to content

Commit

Permalink
fix(unplugin-typia/next): make options parameter optional
Browse files Browse the repository at this point in the history
Makes the options parameter in next() function optional to allow more flexible
configuration when using the NextJS plugin without specific options.
  • Loading branch information
ryoppippi committed Feb 4, 2025
1 parent 36082c8 commit ff7550a
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 @@ -28,7 +28,7 @@ import type { Options } from './core/options.js';
* );
* ```
*/
function next(nextConfig: Record<string, unknown> = {}, options: Options): Record<string, unknown> {
function next(nextConfig: Record<string, unknown> = {}, options?: Options): Record<string, unknown> {
return {
...nextConfig,
webpack(config: Record<string, unknown>, webpackOptions: Record<string, unknown>) {
Expand Down

0 comments on commit ff7550a

Please sign in to comment.