From bca1eb7c13c9457f19e96e57db759d9cd3599ac0 Mon Sep 17 00:00:00 2001 From: Geoffrey Litt Date: Mon, 29 Apr 2024 10:15:57 -0400 Subject: [PATCH] Use "export type" to export Cursor type If the export keyword is used to export the TS type for 'Cursor', it can cause downstream TS projects using the 'isolatedModules' flag. This fixes that problem; tested by running tsc on a downstream project. --- packages/automerge-repo/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/automerge-repo/src/index.ts b/packages/automerge-repo/src/index.ts index 1eee33f2b..269f7e1fe 100644 --- a/packages/automerge-repo/src/index.ts +++ b/packages/automerge-repo/src/index.ts @@ -92,7 +92,7 @@ export type { export * from "./types.js" // export commonly used data types -export { Counter, RawString, Cursor } from "@automerge/automerge/next" +export { Counter, RawString } from "@automerge/automerge/next" // export some automerge API types export type { @@ -108,6 +108,7 @@ export type { MarkSet, MarkRange, MarkValue, + Cursor, } from "@automerge/automerge/next" // export a few utility functions that aren't in automerge-repo