Skip to content

Commit c8b2b22

Browse files
committed
Fix typos
1 parent c0ffdef commit c8b2b22

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/utils.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const hasThrowsTag = comment =>
1313
comment.includes('@exception');
1414

1515
/**
16+
* Combine multiple types into union type string of given types.
17+
*
1618
* @param {import('typescript').TypeChecker} checker
1719
* @param {import('typescript').Type[]} types
1820
* @return {string}
@@ -52,6 +54,7 @@ const findParent = (node, callback) => {
5254
/**
5355
* Collects path from node to the root node until the predicate returns true.
5456
* If the predicate is not provided, it collects the entire path to the root.
57+
*
5558
* @param {import('@typescript-eslint/utils').TSESTree.Node} node
5659
* @param {function(import('@typescript-eslint/utils').TSESTree.Node): boolean} [untilPredicate]
5760
* @returns {import('@typescript-eslint/utils').TSESTree.Node[]}
@@ -289,8 +292,9 @@ const findNodeToComment = (node) => {
289292

290293
/**
291294
* Check if node is in try-catch block where exception is handled
295+
*
292296
* @param {import('@typescript-eslint/utils').TSESTree.Node} node
293-
* returns {boolean}
297+
* @returns {boolean}
294298
*/
295299
const isInHandledContext = (node) => {
296300
while (node) {

0 commit comments

Comments
 (0)