From cf70868577d1410fec9e09bbd2858fe7c4d56d04 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sat, 15 Oct 2022 14:03:53 +0200 Subject: [PATCH] make opt optional --- src/router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router.ts b/src/router.ts index 0f5e33aa..6e599e0b 100644 --- a/src/router.ts +++ b/src/router.ts @@ -20,7 +20,7 @@ interface RouteNode { } export interface CreateRouterOptions { - preemtive: boolean + preemtive?: boolean } export function createRouter (opts: CreateRouterOptions = {}): Router {