Don't want on resolvable Lookup* types (#4524)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user