Comparing version 1.8.2 to 1.8.3
import { ValidationError, Type, StringType, NumberType, LiteralType, ObjectType, ArrayType, UnionType, PartialType, TupleType, DateType, LazyType, UndefinedType, NullType, NullableType, EnumType, BooleanType, UnknownType, NumberOptions, Literal, ObjectShape, ObjectOptions, AnyType, ArrayOptions, UnionOptions, PartialOpts, IntersectionResult, DeepPartialShape, PartialShape, Eval, ToUnion, keySignature, StringTypes, OptionalType, BigIntOptions, BigIntType, StringOptions, EnumOptions } from './types'; | ||
export { ValidationError, Type, Infer, keySignature, AnyType, ObjectShape, NumberType, BooleanType, StringType, UndefinedType, NullType, ObjectType, ArrayType, TupleType, NullableType, OptionalType, MappedType, } from './types'; | ||
export { ValidationError, Type, Infer, keySignature, AnyType, ObjectShape, NumberType, BooleanType, StringType, UndefinedType, NullType, ObjectType, ArrayType, TupleType, NullableType, OptionalType, MappedType, DateType, } from './types'; | ||
export declare const string: (opts?: StringOptions | undefined) => StringType; | ||
@@ -86,2 +86,3 @@ export declare const boolean: () => BooleanType; | ||
OptionalType: typeof OptionalType; | ||
DateType: typeof DateType; | ||
}; | ||
@@ -88,0 +89,0 @@ export default _default; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.required = exports.enum = exports.null = exports.undefined = exports.omit = exports.pick = exports.partial = exports.lazy = exports.date = exports.tuple = exports.dictionary = exports.record = exports.literals = exports.intersection = exports.union = exports.array = exports.object = exports.literal = exports.unknown = exports.bigint = exports.number = exports.boolean = exports.string = exports.OptionalType = exports.NullableType = exports.TupleType = exports.ArrayType = exports.ObjectType = exports.NullType = exports.UndefinedType = exports.StringType = exports.BooleanType = exports.NumberType = exports.keySignature = exports.Type = exports.ValidationError = void 0; | ||
exports.required = exports.enum = exports.null = exports.undefined = exports.omit = exports.pick = exports.partial = exports.lazy = exports.date = exports.tuple = exports.dictionary = exports.record = exports.literals = exports.intersection = exports.union = exports.array = exports.object = exports.literal = exports.unknown = exports.bigint = exports.number = exports.boolean = exports.string = exports.DateType = exports.OptionalType = exports.NullableType = exports.TupleType = exports.ArrayType = exports.ObjectType = exports.NullType = exports.UndefinedType = exports.StringType = exports.BooleanType = exports.NumberType = exports.keySignature = exports.Type = exports.ValidationError = void 0; | ||
const types_1 = require("./types"); | ||
@@ -20,2 +20,3 @@ var types_2 = require("./types"); | ||
Object.defineProperty(exports, "OptionalType", { enumerable: true, get: function () { return types_2.OptionalType; } }); | ||
Object.defineProperty(exports, "DateType", { enumerable: true, get: function () { return types_2.DateType; } }); | ||
const string = (opts) => new types_1.StringType(opts); | ||
@@ -118,2 +119,3 @@ exports.string = string; | ||
OptionalType: types_1.OptionalType, | ||
DateType: types_1.DateType, | ||
}; | ||
@@ -120,0 +122,0 @@ function required(schema) { |
{ | ||
"name": "myzod", | ||
"version": "1.8.2", | ||
"version": "1.8.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./libs/index.js", |
109867
1915