mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 07:04:31 +00:00
Parser build
This commit is contained in:
parent
25f20485a2
commit
531bc4475b
2 changed files with 13 additions and 1 deletions
|
@ -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
Loading…
Reference in a new issue