Skip to content

Commit 356387a

Browse files
committed
feat(json-crdt-extensions): 🎸 fixup <a> registration
1 parent f39ddb6 commit 356387a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/json-crdt-extensions/peritext/registry/registry.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {SliceBehavior, SliceTypeCon} from '../slice/constants';
33
import {SliceRegistry, SliceRegistryEntry, TagType} from './SliceRegistry';
44
import type {JsonNodeView} from '../../../json-crdt/nodes';
55
import type {SchemaToJsonNode} from '../../../json-crdt/schema/types';
6+
import type {PeritextMlElement} from '../block/types';
67

78
/**
89
* Default annotation type registry.
@@ -68,7 +69,7 @@ registry.add(
6869
href: attr.href ?? '',
6970
title: attr.title ?? '',
7071
};
71-
return [SliceTypeCon.a, {data, inline: true}];
72+
return [SliceTypeCon.a, {data, inline: true}] as PeritextMlElement<SliceTypeCon.a, any, true>;
7273
},
7374
},
7475
)

0 commit comments

Comments
 (0)