File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/hypergraph/src/entity Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import type { DocHandle } from '@automerge/automerge-repo' ;
2
2
import * as Schema from 'effect/Schema' ;
3
3
import { decodeFromGrc20Json , EntityNotFoundError , encodeToGrc20Json } from './entity.js' ;
4
- import type { DocumentContent , Entity } from './types.js' ;
4
+ import type { DocumentContent , DocumentEntity , Entity } from './types.js' ;
5
5
6
6
/**
7
7
* Update an existing entity model of given type in the repo.
@@ -32,7 +32,7 @@ export const update = <const S extends Schema.Schema.AnyNoContext>(handle: DocHa
32
32
// TODO: Try to get a diff of the entity properties and only override the changed ones.
33
33
updated = { ...decodeFromGrc20Json ( type , entity ) , ...data } ;
34
34
35
- const encoded = {
35
+ const encoded : DocumentEntity = {
36
36
...encodeToGrc20Json ( type , updated ) ,
37
37
'@@types@@' : [ typeName ] ,
38
38
__deleted : entity . __deleted ?? false ,
You can’t perform that action at this time.
0 commit comments