From 77e9dbb95c207acae271adc8d84e7622a5efe21b Mon Sep 17 00:00:00 2001 From: takker99 <37929109+takker99@users.noreply.github.com> Date: Fri, 13 May 2022 18:32:18 +0900 Subject: [PATCH] :bug: Forgot to export types --- browser/dom/cursor.ts | 1 + browser/dom/selection.ts | 1 + browser/dom/stores.ts | 1 + 3 files changed, 3 insertions(+) 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();