Skip to content

Commit df7ae23

Browse files
committed
refactor(oxlint): add explicit return type, and remove jsdoc type (#15909)
since we use TS files, we should just use type annotations rather than JSDoc annotations
1 parent 1020373 commit df7ae23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/oxlint/src-js/plugins/visitor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,9 @@ function addNonLeafVisitFn(typeId: number, isExit: boolean, visitFn: VisitFn): v
355355
*
356356
* After calling this function, `compiledVisitor` is ready to be used to walk the AST.
357357
*
358-
* @returns {boolean} - `true` if compiled visitor visits at least 1 AST type
358+
* @returns - `true` if compiled visitor visits at least 1 AST type
359359
*/
360-
export function finalizeCompiledVisitor() {
360+
export function finalizeCompiledVisitor(): boolean {
361361
if (hasActiveVisitors === false) return false;
362362

363363
// TODO: Visit functions need to be ordered by specificity of their selectors, with most specific first

0 commit comments

Comments
 (0)