Skip to content

Commit

Permalink
retype Position.isPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-marechal committed Mar 6, 2023
1 parent 2ae3688 commit e291789
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/plugin-ext/src/plugin/types-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ export class Position {
return result!;
}

static isPosition(other: {}): other is Position {
static isPosition(other: unknown): other is Position {
if (!other) {
return false;
}
Expand Down Expand Up @@ -546,8 +546,6 @@ export class Range {
return true;
}
return isObject<theia.Range>(arg)
&& isObject(arg.start)
&& isObject(arg.end)
&& Position.isPosition(arg.start)
&& Position.isPosition(arg.end);
}
Expand Down

0 comments on commit e291789

Please sign in to comment.