@@ -14,7 +14,7 @@ const debug = debugModule('requireExportJsdoc');
1414/**
1515 * @typedef {{
1616 * type?: string,
17- * value?: ValueObject|import('eslint').Rule.Node,
17+ * value?: ValueObject|import('eslint').Rule.Node|import(' @typescript -eslint/types').TSESTree.Node ,
1818 * props: {
1919 * [key: string]: CreatedNode|null,
2020 * },
@@ -93,7 +93,7 @@ const getIdentifier = function (node, globals, scope, opts) {
9393 * @callback CreateSymbol
9494 * @param {import('eslint').Rule.Node|null } node
9595 * @param {CreatedNode } globals
96- * @param {import('eslint').Rule.Node|null } value
96+ * @param {import('eslint').Rule.Node|import('@typescript-eslint/types').TSESTree.Node| null } value
9797 * @param {CreatedNode } [scope]
9898 * @param {boolean|SymbolOptions } [isGlobal]
9999 * @returns {CreatedNode|null }
@@ -112,7 +112,7 @@ let createSymbol; // eslint-disable-line prefer-const
112112
113113/**
114114 *
115- * @param {import('eslint').Rule.Node } node
115+ * @param {import('eslint').Rule.Node|import('@typescript-eslint/types').TSESTree.Node } node
116116 * @param {CreatedNode } globals
117117 * @param {CreatedNode } scope
118118 * @param {SymbolOptions } [opt]
@@ -177,13 +177,10 @@ const getSymbol = function (node, globals, scope, opt) {
177177 ) ;
178178 }
179179
180- /* c8 ignore next 7 -- No longer needed? */
181- // @ts -expect-error TS OK
180+ /* c8 ignore next 4 -- No longer needed? */
182181 case 'TSTypeAliasDeclaration' :
183- // @ts -expect-error TS OK
184182 // Fallthrough
185183 case 'TSEnumDeclaration' :
186- // @ts -expect-error TS OK
187184 case 'TSInterfaceDeclaration' :
188185 case 'ClassDeclaration' :
189186 case 'FunctionExpression' : case 'FunctionDeclaration' :
@@ -473,7 +470,7 @@ const initVariables = function (node, globals, opts) {
473470
474471/**
475472 * Populates variable maps using AST
476- * @param {import('eslint').Rule.Node } node
473+ * @param {import('eslint').Rule.Node|import('@typescript-eslint/types').TSESTree.Node } node
477474 * @param {CreatedNode } globals
478475 * @param {import('./rules/requireJsdoc.js').RequireJsdocOpts } opt
479476 * @param {true } [isExport]
@@ -543,6 +540,7 @@ const mapVariables = function (node, globals, opt, isExport) {
543540 break ;
544541 }
545542
543+ case 'TSTypeAliasDeclaration' :
546544 case 'FunctionDeclaration' : {
547545 /* c8 ignore next 10 */
548546 if ( /** @type {import('estree').Identifier } */ ( node . id ) . type === 'Identifier' ) {
@@ -655,9 +653,9 @@ const mapVariables = function (node, globals, opt, isExport) {
655653 *
656654 * @param {import('eslint').Rule.Node } node
657655 * @param {CreatedNode|ValueObject|string|undefined|
658- * import('eslint').Rule.Node} block
656+ * import('eslint').Rule.Node|import('@typescript-eslint/types').TSESTree.Node } block
659657 * @param {(CreatedNode|ValueObject|string|
660- * import('eslint').Rule.Node)[]} [cache]
658+ * import('eslint').Rule.Node|import('@typescript-eslint/types').TSESTree.Node )[]} [cache]
661659 * @returns {boolean }
662660 */
663661const findNode = function ( node , block , cache ) {
0 commit comments