Skip to content

Commit

Permalink
feat: Export ValidateOptions, ISchema for external use (#1812)
Browse files Browse the repository at this point in the history
* Export ValidateOptions for external reuse

* export ISchema for external use as result of reach()
  • Loading branch information
rosskevin committed Oct 20, 2022
1 parent 62786c4 commit 584df11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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, Message } from './types';
import type { InferType, ISchema, Message, ValidateOptions } from './types';

function addMethod<T extends AnySchema>(
schemaType: (...arg: any[]) => T,
Expand Down Expand Up @@ -55,6 +55,7 @@ export type {
AnyObject,
InferType,
InferType as Asserts,
ISchema,
Message,
AnySchema,
MixedOptions,
Expand All @@ -66,6 +67,7 @@ export type {
SchemaFieldDescription,
SchemaDescription,
LocaleObject,
ValidateOptions
};

export {
Expand Down

0 comments on commit 584df11

Please sign in to comment.