From aff71c36e3e3c967e282e78a259a358e520559f1 Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Sat, 15 Jun 2024 14:29:20 -0700 Subject: [PATCH] Make options optional Closes #1 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index bfbcb72..db19390 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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";