Don't want on resolvable Lookup* types (#4524)

This commit is contained in:
Jaco
2022-02-03 10:54:22 +02:00
committed by GitHub
parent aa7e5ea601
commit 12d6cf8a5b
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -4,6 +4,7 @@
Changes:
- Don't warn on `Lookup*` types missing (these are resolvable)
- Don't clear injected `PortableRegistry` types on runtime upgrade
@@ -13,7 +13,10 @@ const l = logger('metadata');
/** @internal */
export function validateTypes (registry: Registry, throwError: boolean, types: string[]): string[] {
const missing = flattenUniq(extractTypes(types))
.filter((type) => !registry.hasType(type))
.filter((type) =>
!registry.hasType(type) &&
!registry.isLookupType(type)
)
.sort();
if (missing.length !== 0) {