chore: Update and fix config type test

This commit is contained in:
BluJ
2023-04-03 13:41:25 -06:00
parent 2d835e0a9f
commit 82e96eb18e
4 changed files with 30 additions and 5 deletions

View File

@@ -129,9 +129,9 @@ export interface ValueSpecListOf<T extends ListValueSpecType>
// sometimes the type checker needs just a little bit of help
export function isValueSpecListOf<S extends ListValueSpecType>(
t: ValueSpecList,
t: ValueSpecListOf<ListValueSpecType>,
s: S
): t is ValueSpecListOf<S> {
): t is ValueSpecListOf<S> & { spec: ListValueSpecOf<S> } {
return t.spec.type === s;
}