@annotorious/core
Advanced tools
Comparing version 3.0.13 to 3.0.14
@@ -1,2 +0,2 @@ | ||
import { Annotation, AnnotationBody, AnnotationTarget } from '../model/Annotation'; | ||
import { Annotation } from '../model/Annotation'; | ||
/** Interface for listening to changes in the annotation store **/ | ||
@@ -23,11 +23,11 @@ export interface StoreObserver<T extends Annotation> { | ||
newValue: T; | ||
bodiesCreated?: AnnotationBody[]; | ||
bodiesDeleted?: AnnotationBody[]; | ||
bodiesCreated?: T['bodies']; | ||
bodiesDeleted?: T['bodies']; | ||
bodiesUpdated?: Array<{ | ||
oldBody: AnnotationBody; | ||
newBody: AnnotationBody; | ||
oldBody: T['bodies'][number]; | ||
newBody: T['bodies'][number]; | ||
}>; | ||
targetUpdated?: { | ||
oldTarget: AnnotationTarget; | ||
newTarget: AnnotationTarget; | ||
oldTarget: T['target']; | ||
newTarget: T['target']; | ||
}; | ||
@@ -34,0 +34,0 @@ } |
{ | ||
"name": "@annotorious/core", | ||
"version": "3.0.13", | ||
"version": "3.0.14", | ||
"description": "Annotorious core types and functions", | ||
@@ -37,3 +37,3 @@ "author": "Rainer Simon", | ||
"vite-plugin-dts": "^4.3.0", | ||
"vitest": "^2.1.4" | ||
"vitest": "^2.1.5" | ||
}, | ||
@@ -40,0 +40,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
189777