Skip to content

Commit

Permalink
Clean up types
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey committed Jun 1, 2023
1 parent 10549e1 commit 3b1cfff
Showing 1 changed file with 2 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Range } from "@cursorless/common";
import z from "zod";
import { HasSchema } from "./PredicateOperatorSchemaTypes";
import { makeRangeFromPositions } from "../../util/nodeSelectors";
import { MutableQueryCapture } from "./QueryCapture";
import { QueryPredicateOperator } from "./QueryPredicateOperator";
import { q } from "./operatorArgumentSchemaTypes";
Expand Down Expand Up @@ -89,25 +89,6 @@ class ChildRange extends QueryPredicateOperator<ChildRange> {
z.tuple([q.node, q.integer, q.integer, q.boolean, q.boolean]),
]);

run(nodeInfo: MutableQueryCapture, startIndex: number): boolean;
run(
nodeInfo: MutableQueryCapture,
startIndex: number,
endIndex: number,
): boolean;
run(
nodeInfo: MutableQueryCapture,
startIndex: number,
endIndex: number,
excludeStart: boolean,
): boolean;
run(
nodeInfo: MutableQueryCapture,
startIndex: number,
endIndex: number,
excludeStart: boolean,
excludeEnd: boolean,
): boolean;
run(
nodeInfo: MutableQueryCapture,
startIndex: number,
Expand Down Expand Up @@ -135,7 +116,7 @@ class ChildRange extends QueryPredicateOperator<ChildRange> {
}
}

export const queryPredicateOperators: QueryPredicateOperator<HasSchema>[] = [
export const queryPredicateOperators = [
new NotType(),
new NotParentType(),
new IsNthChild(),
Expand Down

0 comments on commit 3b1cfff

Please sign in to comment.