Skip to content

Commit 5e07136

Browse files
authored
Merge pull request #54 from takker99/fix-type-exports
🐛 Forgot to export types
2 parents ed1e90b + 77e9dbb commit 5e07136

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

browser/dom/cursor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44

55
import { takeStores } from "./stores.ts";
66
import { Cursor } from "./cursor.d.ts";
7+
export type { Cursor };
78

89
export const takeCursor = (): Cursor => takeStores().cursor;

browser/dom/selection.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44

55
import { takeStores } from "./stores.ts";
66
import { Selection } from "./selection.d.ts";
7+
export type { Selection };
78

89
export const takeSelection = (): Selection => takeStores().selection;

browser/dom/stores.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import { textInput } from "./dom.ts";
66
import { Cursor } from "./cursor.d.ts";
77
import { Selection } from "./selection.d.ts";
8+
export type { Cursor, Selection };
89

910
export const takeStores = (): { cursor: Cursor; selection: Selection } => {
1011
const textarea = textInput();

0 commit comments

Comments
 (0)