@digitalculture/ochre-sdk 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Represents the core data structure containing item information and metadata
|
|
4
4
|
*/
|
|
5
|
-
type Data<T extends DataCategory, U extends DataCategory> = {
|
|
5
|
+
type Data<T extends DataCategory = DataCategory, U extends DataCategory = (T extends "tree" | "set" ? DataCategory : never)> = {
|
|
6
6
|
uuid: string;
|
|
7
7
|
belongsTo: {
|
|
8
8
|
uuid: string;
|
|
@@ -18,7 +18,7 @@ type DataCategory = "tree" | "set" | "resource" | "spatialUnit" | "concept" | "p
|
|
|
18
18
|
/**
|
|
19
19
|
* Represents the item of the data
|
|
20
20
|
*/
|
|
21
|
-
type Item<T extends DataCategory, U extends DataCategory> = Tree<T, U> | Set<T> | Resource | SpatialUnit | Concept | Period | Bibliography | Person | PropertyValue;
|
|
21
|
+
type Item<T extends DataCategory = DataCategory, U extends DataCategory = (T extends "tree" | "set" ? DataCategory : never)> = Tree<T, U> | Set<T> | Resource | SpatialUnit | Concept | Period | Bibliography | Person | PropertyValue;
|
|
22
22
|
/**
|
|
23
23
|
* Basic identification information used across multiple types
|
|
24
24
|
*/
|
package/package.json
CHANGED