@types/estree
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -236,3 +236,3 @@ // This definition file follows a somewhat unusual format. ESTree allows | ||
export interface FunctionDeclaration extends BaseFunction, BaseDeclaration { | ||
export interface MaybeNamedFunctionDeclaration extends BaseFunction, BaseDeclaration { | ||
type: "FunctionDeclaration"; | ||
@@ -244,2 +244,6 @@ /** It is null when a function declaration is a part of the `export default function` statement */ | ||
export interface FunctionDeclaration extends MaybeNamedFunctionDeclaration { | ||
id: Identifier; | ||
} | ||
export interface VariableDeclaration extends BaseDeclaration { | ||
@@ -598,3 +602,3 @@ type: "VariableDeclaration"; | ||
export interface ClassDeclaration extends BaseClass, BaseDeclaration { | ||
export interface MaybeNamedClassDeclaration extends BaseClass, BaseDeclaration { | ||
type: "ClassDeclaration"; | ||
@@ -605,2 +609,6 @@ /** It is null when a class declaration is a part of the `export default class` statement */ | ||
export interface ClassDeclaration extends MaybeNamedClassDeclaration { | ||
id: Identifier; | ||
} | ||
export interface ClassExpression extends BaseClass, BaseExpression { | ||
@@ -667,3 +675,3 @@ type: "ClassExpression"; | ||
type: "ExportDefaultDeclaration"; | ||
declaration: Declaration | Expression; | ||
declaration: MaybeNamedFunctionDeclaration | MaybeNamedClassDeclaration | Expression; | ||
} | ||
@@ -670,0 +678,0 @@ |
{ | ||
"name": "@types/estree", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "TypeScript definitions for estree", | ||
@@ -23,5 +23,5 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/estree", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "36e79e20f43a2a1e16682303808bd4752e77b5acbfb04f2accc676715ef8d7ad", | ||
"typesPublisherContentHash": "d9dbde8e10a5e616b8a102568562e7a5f694f5c4e65dbfe3bcdf608938e918d1", | ||
"typeScriptVersion": "4.5", | ||
"nonNpm": true | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 18 Oct 2023 01:17:34 GMT | ||
* Last updated: Mon, 30 Oct 2023 22:17:08 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25736
704