Parser build

This commit is contained in:
Richard Davey 2024-09-03 14:37:17 +01:00
parent 25f20485a2
commit 531bc4475b
2 changed files with 13 additions and 1 deletions

View file

@ -460,6 +460,18 @@ class Parser {
} }
} }
} }
else if (name.startsWith('object<')) {
let matches = name.match(/^object<(.*)>$/);
if (matches && matches[1]) {
if (matches[1].indexOf(',') != -1) {
let parts = matches[1].split(',');
return `{[key: ${this.processTypeName(parts[0])}]: typeof ${this.processTypeName(parts[1])}}`;
}
else {
return `{[key: string]: typeof ${this.processTypeName(matches[1])}}`;
}
}
}
return name; return name;
} }
processFlags(doclet, obj) { processFlags(doclet, obj) {

File diff suppressed because one or more lines are too long