Skip to content

Commit

Permalink
Make options optional
Browse files Browse the repository at this point in the history
Closes #1
  • Loading branch information
ThatOneCalculator authored and kravetsone committed Jun 15, 2024
1 parent 7b70122 commit aff71c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const fsUsageMock = /* ts */ `{
}
}`;

export function autoload(options: AutoloadOptions) {
export function autoload(options?: AutoloadOptions) {
const pattern = options.pattern ?? "**/*.{ts,tsx,js,jsx,mjs,cjs}";
const directory = options.directory ?? "./example/routes";

Expand Down

0 comments on commit aff71c3

Please sign in to comment.