From f250109dbf7158f1ee31ccd11f8309d660880252 Mon Sep 17 00:00:00 2001 From: Jason Quense Date: Mon, 22 Aug 2022 21:08:10 -0400 Subject: [PATCH] fix: export more types --- src/index.ts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 48d003da5..0bc4b69ff 100644 --- a/src/index.ts +++ b/src/index.ts @@ -25,7 +25,7 @@ import Schema, { SchemaFieldDescription, SchemaDescription, } from './schema'; -import type { InferType } from './types'; +import type { InferType, Message } from './types'; function addMethod( schemaType: (...arg: any[]) => T, @@ -55,9 +55,10 @@ export type { AnyObject, InferType, InferType as Asserts, + Message, AnySchema, MixedOptions, - TypeGuard, + TypeGuard as MixedTypeGuard, SchemaRefDescription, SchemaInnerTypeDescription, SchemaObjectDescription, @@ -113,3 +114,15 @@ export type { DefaultFromShape, MakePartial, } from './util/objectTypes'; + +export type { + Maybe, + Flags, + Optionals, + Thunk, + ToggleDefault, + Defined, + NotNull, + UnsetFlag, + SetFlag, +} from './util/types';