Skip to content

Commit

Permalink
fix: improve type getMarkerAtPosition markergroup (#5631)
Browse files Browse the repository at this point in the history
  • Loading branch information
akoreman authored Aug 26, 2024
1 parent 4befc2c commit 89bd40a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ace.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export namespace Ace {
export class MarkerGroup {
constructor(session: EditSession, options?: {markerType?: "fullLine" | "line"});
setMarkers(markers: MarkerGroupItem[]): void;
getMarkerAtPosition(pos: Position): MarkerGroupItem;
getMarkerAtPosition(pos: Position): MarkerGroupItem | undefined;
}


Expand Down
2 changes: 1 addition & 1 deletion src/marker_group.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class MarkerGroup {
/**
* Finds the first marker containing pos
* @param {import("../ace-internal").Ace.Point} pos
* @returns import("../ace-internal").Ace.MarkerGroupItem
* @returns {import("../ace-internal").Ace.MarkerGroupItem | undefined}
*/
getMarkerAtPosition(pos) {
return this.markers.find(function(marker) {
Expand Down

0 comments on commit 89bd40a

Please sign in to comment.