Skip to content

Commit

Permalink
make sure UrlHeads is exported like other types
Browse files Browse the repository at this point in the history
  • Loading branch information
pvh committed Jan 23, 2025
1 parent 04e79be commit 3966337
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automerge/automerge-repo-monorepo",
"version": "2.0.0-alpha.16",
"version": "2.0.0-alpha.17",
"description": "Automerge Repo monorepo",
"main": "packages/automerge-repo/dist/index.js",
"repository": "https://github.com/automerge/automerge-repo",
Expand Down
5 changes: 4 additions & 1 deletion packages/automerge-repo/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ export type AnyDocumentId =
| BinaryDocumentId
| LegacyDocumentId

// We need to define our own version of heads because the AutomergeHeads type is not bs58check encoded
export type UrlHeads = string[] & { __automergeUrlHeads: unknown }

/** A branded type for peer IDs */
export type PeerId = string & { __peerId: true }

/** A randomly generated string created when the {@link Repo} starts up */
export type SessionId = string & { __SessionId: true }
export type SessionId = string & { __sessionId: true }

0 comments on commit 3966337

Please sign in to comment.