From baff310d65e3b1c44bd34787b15827135c2f7aae Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Sat, 9 Apr 2022 16:11:58 +0500 Subject: [PATCH] update verbEntry predicate stuff --- src/lib/type-predicates.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/type-predicates.ts b/src/lib/type-predicates.ts index 1cdcd02..fc924be 100644 --- a/src/lib/type-predicates.ts +++ b/src/lib/type-predicates.ts @@ -31,7 +31,9 @@ export function isVerbDictionaryEntry(e: T.DictionaryEntry): e is T.VerbDictiona return !!e.c?.startsWith("v."); } -export function isVerbEntry(e: T.Entry | T.DictionaryEntry): e is T.VerbEntry { +export function isVerbEntry( + e: T.Entry | T.DictionaryEntry | { entry: T.DictionaryEntry, comp?: T.DictionaryEntry } +): e is T.VerbEntry { return "entry" in e && isVerbDictionaryEntry(e.entry); }