Comparing version 1.8.1 to 1.8.2
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, } from './types'; | ||
export { ValidationError, Type, Infer, keySignature, AnyType, ObjectShape, NumberType, BooleanType, StringType, UndefinedType, NullType, ObjectType, ArrayType, TupleType, NullableType, OptionalType, MappedType, } from './types'; | ||
export declare const string: (opts?: StringOptions | undefined) => StringType; | ||
@@ -4,0 +4,0 @@ export declare const boolean: () => BooleanType; |
@@ -21,3 +21,3 @@ declare const typeErrSym: unique symbol; | ||
} | ||
declare type MappedType<T> = Type<T> & { | ||
export declare type MappedType<T> = Type<T> & { | ||
withPredicate: (fn: Predicate<T>['func'], errMsg?: ErrMsg<T>) => Type<T> & MappedType<T>; | ||
@@ -24,0 +24,0 @@ default: (value: T | (() => T)) => Type<T> & MappedType<T>; |
{ | ||
"name": "myzod", | ||
"version": "1.8.1", | ||
"version": "1.8.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./libs/index.js", |
109662