@travetto/model 8.0.0-alpha.25 → 8.0.0-alpha.26
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/package.json +4 -4
- package/src/registry/types.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.26",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Datastore abstraction for core operations.",
|
|
6
6
|
"keywords": [
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"directory": "module/model"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@travetto/config": "^8.0.0-alpha.
|
|
30
|
+
"@travetto/config": "^8.0.0-alpha.25",
|
|
31
31
|
"@travetto/di": "^8.0.0-alpha.22",
|
|
32
32
|
"@travetto/registry": "^8.0.0-alpha.22",
|
|
33
|
-
"@travetto/schema": "^8.0.0-alpha.
|
|
33
|
+
"@travetto/schema": "^8.0.0-alpha.25"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@travetto/cli": "^8.0.0-alpha.
|
|
36
|
+
"@travetto/cli": "^8.0.0-alpha.31",
|
|
37
37
|
"@travetto/test": "^8.0.0-alpha.23"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|
package/src/registry/types.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type PrePersistScope = 'full' | 'partial' | 'all';
|
|
|
9
9
|
/**
|
|
10
10
|
* Index options
|
|
11
11
|
*/
|
|
12
|
-
export type IndexConfig<V extends string = string> = {
|
|
12
|
+
export type IndexConfig<V extends string = string, T extends ModelType = ModelType> = {
|
|
13
13
|
/**
|
|
14
14
|
* Index name
|
|
15
15
|
*/
|
|
@@ -21,7 +21,7 @@ export type IndexConfig<V extends string = string> = {
|
|
|
21
21
|
/**
|
|
22
22
|
* Class the index belongs to
|
|
23
23
|
*/
|
|
24
|
-
class: Class<
|
|
24
|
+
class: Class<T>;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
/**
|