From 593e7454737b6f4376c52753212b444ccc8ab90e Mon Sep 17 00:00:00 2001 From: Kevin Ross Date: Mon, 17 Oct 2022 16:22:57 -0500 Subject: [PATCH 1/2] Export ValidateOptions for external reuse --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 0bc4b69ff..646a640e5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -25,7 +25,7 @@ import Schema, { SchemaFieldDescription, SchemaDescription, } from './schema'; -import type { InferType, Message } from './types'; +import type { InferType, Message, ValidateOptions } from './types'; function addMethod( schemaType: (...arg: any[]) => T, @@ -66,6 +66,7 @@ export type { SchemaFieldDescription, SchemaDescription, LocaleObject, + ValidateOptions }; export { From fc7eb345ca49b1e15ead1439c0b902f4f55e87c6 Mon Sep 17 00:00:00 2001 From: Kevin Ross Date: Wed, 19 Oct 2022 15:17:31 -0500 Subject: [PATCH 2/2] export ISchema for external use as result of reach() --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 646a640e5..e8226ad67 100644 --- a/src/index.ts +++ b/src/index.ts @@ -25,7 +25,7 @@ import Schema, { SchemaFieldDescription, SchemaDescription, } from './schema'; -import type { InferType, Message, ValidateOptions } from './types'; +import type { InferType, ISchema, Message, ValidateOptions } from './types'; function addMethod( schemaType: (...arg: any[]) => T, @@ -55,6 +55,7 @@ export type { AnyObject, InferType, InferType as Asserts, + ISchema, Message, AnySchema, MixedOptions,