mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
Fix issue: hitAreaCallback type definition #5954
This commit is contained in:
parent
ca14b49907
commit
894e67d6bb
1 changed files with 5 additions and 1 deletions
|
@ -433,7 +433,11 @@ export class Parser {
|
|||
|
||||
} else {
|
||||
if (doclet.type.names[0] == "function") {
|
||||
type = dom.create.functionType(null, dom.type.void);
|
||||
let returnType: dom.Type = dom.type.void;
|
||||
if (doclet.returns) {
|
||||
returnType = this.parseType(doclet.returns[0]);
|
||||
}
|
||||
type = dom.create.functionType(null, returnType);
|
||||
this.setParams(doclet, type);
|
||||
} else {
|
||||
type = this.parseType(doclet);
|
||||
|
|
Loading…
Reference in a new issue