@atscript/mongo 0.1.0 → 0.1.2
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.ts +2 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ declare class AsCollection<T extends TAtscriptAnnotatedTypeConstructor> {
|
|
|
47
47
|
protected readonly logger: TGenericLogger;
|
|
48
48
|
readonly name: string;
|
|
49
49
|
readonly collection: Collection<InstanceType<T>>;
|
|
50
|
-
protected readonly validators: Map<TValidatorPurpose, Validator<T
|
|
50
|
+
protected readonly validators: Map<TValidatorPurpose, Validator<T, InstanceType<T>>>;
|
|
51
51
|
protected _indexes: Map<string, TIndex>;
|
|
52
52
|
protected _vectorFilters: Map<string, string>;
|
|
53
53
|
protected _flatMap?: Map<string, TAtscriptAnnotatedType>;
|
|
@@ -75,7 +75,7 @@ declare class AsCollection<T extends TAtscriptAnnotatedTypeConstructor> {
|
|
|
75
75
|
* @returns {Validator} The corresponding validator instance.
|
|
76
76
|
* @throws {Error} If an unknown purpose is provided.
|
|
77
77
|
*/
|
|
78
|
-
getValidator(purpose: TValidatorPurpose): Validator<T
|
|
78
|
+
getValidator(purpose: TValidatorPurpose): Validator<T, InstanceType<T>> | undefined;
|
|
79
79
|
get type(): TAtscriptAnnotatedType<TAtscriptTypeObject>;
|
|
80
80
|
get indexes(): Map<string, TIndex>;
|
|
81
81
|
protected _addIndexField(type: TPlainIndex['type'], name: string, field: string, weight?: number): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/mongo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Mongodb plugin for atscript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"license": "ISC",
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"mongodb": "^6.17.0",
|
|
37
|
-
"@atscript/
|
|
38
|
-
"@atscript/
|
|
37
|
+
"@atscript/typescript": "^0.1.2",
|
|
38
|
+
"@atscript/core": "^0.1.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"vitest": "3.2.4"
|