Skip to content

Commit 84aaa7b

Browse files
authored
Add a return type to captureUtils (#1704)
## Checklist - [ ] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [ ] I have not broken the cheatsheet
1 parent 8ad929d commit 84aaa7b

File tree

1 file changed

+2
-1
lines changed
  • packages/cursorless-engine/src/processTargets/modifiers/scopeHandlers/TreeSitterScopeHandler

1 file changed

+2
-1
lines changed

packages/cursorless-engine/src/processTargets/modifiers/scopeHandlers/TreeSitterScopeHandler/captureUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Range } from "@cursorless/common";
12
import { QueryMatch } from "../../../../languages/TreeSitterQuery/QueryCapture";
23

34
/**
@@ -51,7 +52,7 @@ export function getRelatedRange(
5152
scopeTypeType: string,
5253
relationship: string,
5354
matchHasScopeType: boolean,
54-
) {
55+
): Range | undefined {
5556
return getRelatedCapture(
5657
match,
5758
scopeTypeType,

0 commit comments

Comments
 (0)