Skip to content

Commit f071703

Browse files
authored
fix: avoid any type for no-top-level-await listener node (build issue) (#498)
1 parent a3719d2 commit f071703

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎lib/rules/no-top-level-await.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ module.exports = {
120120
":function:exit"() {
121121
functionDepth--
122122
},
123+
/**
124+
* @param {import('estree').AwaitExpression | import('estree').ForOfStatement | import('estree').VariableDeclaration} node
125+
*/
123126
"AwaitExpression, ForOfStatement[await=true], VariableDeclaration[kind='await using']"(
124127
node
125128
) {

0 commit comments

Comments
 (0)