Skip to content

Commit ef6356e

Browse files
authored
Merge pull request #300 from bunsenstraat/bunsenstraat-patch-2
AddAnnotation method added
2 parents 1fd2eca + 1f8673a commit ef6356e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

packages/api/src/lib/editor/api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HighlightPosition } from './type'
1+
import { HighlightPosition, Annotation } from './type'
22
import { StatusEvents } from '@remixproject/plugin-utils'
33

44
export interface IEditor {
@@ -10,6 +10,7 @@ export interface IEditor {
1010
hexColor: string,
1111
): void
1212
discardHighlight(): void
13+
addAnnotation(annotation: Annotation): void
1314
}
1415

1516
}

packages/api/src/lib/editor/type.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export interface HighlightPosition {
1010
}
1111

1212
export interface Annotation extends Error {
13-
row: number;
14-
column: number;
15-
text: string;
16-
type: "error" | "warning" | "information";
17-
}
13+
row: number;
14+
column: number;
15+
text: string;
16+
type: "error" | "warning" | "info";
17+
}

0 commit comments

Comments
 (0)