Bump deps (#3224)
This commit is contained in:
@@ -70,8 +70,8 @@ export function setImports (allDefs: Record<string, ModuleTypes>, imports: TypeI
|
||||
setImports(allDefs, imports, [typeDef.sub.type]);
|
||||
}
|
||||
} else if (type.includes('[') && type.includes('|')) {
|
||||
// We split the types
|
||||
const splitTypes = /\[\s?(.+?)\s?\]/.exec(type)![1].split(/\s?\|\s?/);
|
||||
// We split the types (we already dod the check above, so safe-path should not be caught)
|
||||
const splitTypes = (/\[\s?(.+?)\s?\]/.exec(type) || ['', ''])[1].split(/\s?\|\s?/);
|
||||
|
||||
setImports(allDefs, imports, splitTypes);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user