@content-collections/core 0.6.1 → 0.6.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 +6 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import z__default, { ZodRawShape, z as z$1, ZodObject, ZodTypeAny, ZodString } from 'zod';
|
|
2
|
+
export * from 'zod';
|
|
2
3
|
import { parse } from 'yaml';
|
|
3
4
|
|
|
4
5
|
type Parsers = typeof parsers;
|
|
@@ -23,8 +24,8 @@ declare const parsers: {
|
|
|
23
24
|
|
|
24
25
|
type CacheFn = <TInput, TOutput>(input: TInput, compute: (input: TInput) => Promise<TOutput> | TOutput) => Promise<TOutput>;
|
|
25
26
|
|
|
26
|
-
declare const literalSchema:
|
|
27
|
-
type Literal =
|
|
27
|
+
declare const literalSchema: z__default.ZodUnion<[z__default.ZodString, z__default.ZodNumber, z__default.ZodBoolean, z__default.ZodNull, z__default.ZodUndefined, z__default.ZodDate, z__default.ZodMap<z__default.ZodUnknown, z__default.ZodUnknown>, z__default.ZodSet<z__default.ZodUnknown>, z__default.ZodBigInt]>;
|
|
28
|
+
type Literal = z__default.infer<typeof literalSchema>;
|
|
28
29
|
type SchemaType = Literal | {
|
|
29
30
|
[key: string]: SchemaType;
|
|
30
31
|
} | SchemaType[];
|
|
@@ -32,8 +33,8 @@ type NotSerializableError = `The return type of the transform function must be a
|
|
|
32
33
|
See https://www.content-collections.dev/docs/serialization for more information.
|
|
33
34
|
|
|
34
35
|
The following type is not valid:`;
|
|
35
|
-
declare const serializableSchema:
|
|
36
|
-
type Serializable =
|
|
36
|
+
declare const serializableSchema: z__default.ZodRecord<z__default.ZodString, z__default.ZodType<SchemaType, z__default.ZodTypeDef, SchemaType>>;
|
|
37
|
+
type Serializable = z__default.infer<typeof serializableSchema>;
|
|
37
38
|
|
|
38
39
|
type Meta = {
|
|
39
40
|
filePath: string;
|