diff --git a/browser/dom/cursor.ts b/browser/dom/cursor.ts index d4c4721..ded767a 100644 --- a/browser/dom/cursor.ts +++ b/browser/dom/cursor.ts @@ -4,5 +4,6 @@ import { takeStores } from "./stores.ts"; import { Cursor } from "./cursor.d.ts"; +export type { Cursor }; export const takeCursor = (): Cursor => takeStores().cursor; diff --git a/browser/dom/selection.ts b/browser/dom/selection.ts index 915af38..e54a69e 100644 --- a/browser/dom/selection.ts +++ b/browser/dom/selection.ts @@ -4,5 +4,6 @@ import { takeStores } from "./stores.ts"; import { Selection } from "./selection.d.ts"; +export type { Selection }; export const takeSelection = (): Selection => takeStores().selection; diff --git a/browser/dom/stores.ts b/browser/dom/stores.ts index c9572eb..d97ced5 100644 --- a/browser/dom/stores.ts +++ b/browser/dom/stores.ts @@ -5,6 +5,7 @@ import { textInput } from "./dom.ts"; import { Cursor } from "./cursor.d.ts"; import { Selection } from "./selection.d.ts"; +export type { Cursor, Selection }; export const takeStores = (): { cursor: Cursor; selection: Selection } => { const textarea = textInput();