Skip to content

Commit

Permalink
fix: export more types
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Aug 23, 2022
1 parent 74c5bc5 commit f250109
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import Schema, {
SchemaFieldDescription,
SchemaDescription,
} from './schema';
import type { InferType } from './types';
import type { InferType, Message } from './types';

function addMethod<T extends AnySchema>(
schemaType: (...arg: any[]) => T,
Expand Down Expand Up @@ -55,9 +55,10 @@ export type {
AnyObject,
InferType,
InferType as Asserts,
Message,
AnySchema,
MixedOptions,
TypeGuard,
TypeGuard as MixedTypeGuard,
SchemaRefDescription,
SchemaInnerTypeDescription,
SchemaObjectDescription,
Expand Down Expand Up @@ -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';

0 comments on commit f250109

Please sign in to comment.