From 4c23dbd39bedecbf0f9baead098b420bbc23e7f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Sj=C3=B6gren?= Date: Mon, 30 Sep 2024 11:51:03 +0200 Subject: [PATCH] added exporting of locale interfaces from `locale.ts` in `index.ts` --- src/index.ts | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 2bdce99a..6ab477f0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,7 +17,16 @@ import reach, { getIn } from './util/reach'; import isSchema from './util/isSchema'; import printValue from './util/printValue'; import setLocale, { LocaleObject } from './setLocale'; -import defaultLocale from './locale'; +import defaultLocale, { + MixedLocale, + StringLocale, + NumberLocale, + DateLocale, + ObjectLocale, + ArrayLocale, + TupleLocale, + BooleanLocale, +} from './locale'; import Schema, { AnySchema, CastOptions as BaseCastOptions, @@ -82,6 +91,14 @@ export type { SchemaMetadata, CustomSchemaMetadata, LocaleObject, + MixedLocale, + StringLocale, + NumberLocale, + DateLocale, + ObjectLocale, + ArrayLocale, + TupleLocale, + BooleanLocale, ValidateOptions, DefaultThunk, Lazy,