Skip to content

Commit

Permalink
export types
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWang15 committed Oct 10, 2021
1 parent ece3518 commit 9243977
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/lib/classes/Marker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -694,3 +694,4 @@ class Marker {
}

export default Marker;
export type { MarkerConstructorArgs };
16 changes: 14 additions & 2 deletions src/libroot.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
import Marker from "./lib/classes/Marker";
import Marker, { MarkerConstructorArgs } from "./lib/classes/Marker";
import DeserializationError, {
isDeserializationError,
} from "./lib/classes/errors/DeserializationError";
import SerializedRange from "./lib/classes/SerializedRange";
import Context from "./lib/classes/Context";
import EventHandler from "./lib/classes/EventHandler";
import HighlightPainter from "./lib/classes/HighlightPainter";

const Errors = {
DeserializationError,
isDeserializationError,
};

export { Marker };
export { Errors };

export type {
Context,
EventHandler,
HighlightPainter,
SerializedRange,
MarkerConstructorArgs,
DeserializationError,
};

0 comments on commit 9243977

Please sign in to comment.