aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/utils/adt.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/adt.ts b/src/utils/adt.ts
index 7234f67..78ab667 100644
--- a/src/utils/adt.ts
+++ b/src/utils/adt.ts
@@ -6,7 +6,7 @@ export const match =
}): R => ((pattern as any)[tag.tag] || (pattern._ as any))(tag.value)
export const matchString =
- <R, T extends string>(key: T, pattern: {
+ <R, T extends string = string>(key: T, pattern: {
[key in T | '_']?: (key: key) => R
}): R => ((pattern as any)[key] || (pattern._ as any))(key)