From 787bb334891c220afe17f2630de57d8360ce93df Mon Sep 17 00:00:00 2001 From: Paul Sonnentag Date: Fri, 12 Jan 2024 11:50:32 +0100 Subject: [PATCH] fix type error --- packages/automerge-repo/src/Repo.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/automerge-repo/src/Repo.ts b/packages/automerge-repo/src/Repo.ts index 9630a7dc6..22d4916eb 100644 --- a/packages/automerge-repo/src/Repo.ts +++ b/packages/automerge-repo/src/Repo.ts @@ -9,7 +9,6 @@ import { import { ChangeMetadataFunction, DocHandle, - ChangeMetadata, DocHandleEncodedChangePayload, DocHandleChangeOptions, } from "./DocHandle.js" @@ -368,7 +367,7 @@ export class Repo extends EventEmitter { * an empty object `{}`. Its documentId is generated by the system. we emit a `document` event * to advertise interest in the document. */ - create(options: CreateDocHandleOptions = {}): DocHandle { + create(options: DocHandleChangeOptions = {}): DocHandle { // TODO: // either // - pass an initial value and do something like this to ensure that you get a valid initial value