From 6ce2a861c6e52c19509962bce6f903ec7dd133af Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Thu, 12 May 2022 11:37:23 +0200 Subject: [PATCH] refactor(types): missing generic constraint --- src/matcher/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/matcher/index.ts b/src/matcher/index.ts index d8b2dfb8..e6d2ceac 100644 --- a/src/matcher/index.ts +++ b/src/matcher/index.ts @@ -415,7 +415,10 @@ function mergeMetaFields(matched: MatcherLocation['matched']) { ) } -function mergeOptions(defaults: T, partialOptions: Partial): T { +function mergeOptions( + defaults: T, + partialOptions: Partial +): T { const options = {} as T for (const key in defaults) { options[key] = key in partialOptions ? partialOptions[key]! : defaults[key] -- 2.47.3