@liminalfunctions/framework 1.0.35 → 1.0.36
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/F_Collection.d.ts +1 -1
- package/package.json +1 -1
- package/src/F_Collection.ts +1 -1
package/dist/F_Collection.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import mongoose, { Model } from "mongoose";
|
|
3
3
|
import { F_Security_Model } from "./F_Security_Models/F_Security_Model.js";
|
|
4
|
-
export type CollectionType<Col extends F_Collection<ID, Val>, ID extends string, Val extends z.ZodObject> = z.
|
|
4
|
+
export type CollectionType<Col extends F_Collection<ID, Val>, ID extends string, Val extends z.ZodObject> = z.output<Col['validator']>;
|
|
5
5
|
export type F_Layer<Collection_ID extends string, ZodSchema extends z.ZodObject> = {
|
|
6
6
|
layers: string[];
|
|
7
7
|
security_models: F_Security_Model<Collection_ID, ZodSchema>[];
|
package/package.json
CHANGED
package/src/F_Collection.ts
CHANGED
|
@@ -4,7 +4,7 @@ import mongoose, { Collection, Model, ObjectId } from "mongoose";
|
|
|
4
4
|
import { F_Security_Model } from "./F_Security_Models/F_Security_Model.js";
|
|
5
5
|
import { query_validator_from_zod } from "./utils/query_validator_from_zod.js";
|
|
6
6
|
|
|
7
|
-
export type CollectionType<Col extends F_Collection<ID, Val>, ID extends string, Val extends z.ZodObject> = z.
|
|
7
|
+
export type CollectionType<Col extends F_Collection<ID, Val>, ID extends string, Val extends z.ZodObject> = z.output<Col['validator']>;
|
|
8
8
|
|
|
9
9
|
export type F_Layer<Collection_ID extends string, ZodSchema extends z.ZodObject> = {
|
|
10
10
|
layers: string[],
|