update verbEntry predicate stuff

This commit is contained in:
lingdocs 2022-04-09 16:11:58 +05:00
parent 85171e7cca
commit baff310d65
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}