mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[babel-types] Allow sparse ArrayExpression nodes (#25556)
This commit is contained in:
parent
75e4923f82
commit
db0789397a
4
types/babel-types/index.d.ts
vendored
4
types/babel-types/index.d.ts
vendored
@ -46,7 +46,7 @@ export interface Node {
|
||||
|
||||
export interface ArrayExpression extends Node {
|
||||
type: "ArrayExpression";
|
||||
elements: Array<Expression | SpreadElement>;
|
||||
elements: Array<null | Expression | SpreadElement>;
|
||||
}
|
||||
|
||||
export interface AssignmentExpression extends Node {
|
||||
@ -1306,7 +1306,7 @@ export type TSEntityName = Identifier | TSQualifiedName;
|
||||
export type TSTypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSIndexSignature
|
||||
| TSMethodSignature | TSPropertySignature;
|
||||
|
||||
export function arrayExpression(elements?: Array<Expression | SpreadElement>): ArrayExpression;
|
||||
export function arrayExpression(elements?: Array<null | Expression | SpreadElement>): ArrayExpression;
|
||||
export function assignmentExpression(operator?: string, left?: LVal, right?: Expression): AssignmentExpression;
|
||||
export function binaryExpression(
|
||||
operator?: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user