luaparse: fix FunctionDeclaration & IfStatement & UnaryExpression (#37588)

* luaparse: fix FunctionDeclaration

* Update index.d.ts

* Update ast.d.ts

* Update ast.d.ts

* Update ast.d.ts

* Update ast.d.ts
This commit is contained in:
Zaoqi 2019-08-21 02:58:05 +08:00 committed by Sheetal Nandi
parent d3d853ce90
commit 5cca2ef9a3
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
// thomasfn <https://github.com/thomasfn>
// Teoxoy <https://github.com/teoxoy>
// Zaoqi <https://github.com/zaoqi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4

View File

@ -27,7 +27,7 @@ export interface ReturnStatement extends Base<"ReturnStatement"> {
}
export interface IfStatement extends Base<"IfStatement"> {
clauses: IfClause[];
clauses: Array<IfClause | ElseifClause | ElseClause>;
}
export interface IfClause extends Base<"IfClause"> {