From 67c96ae7f8fcb59758732b2956ff0b7390f08213 Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Wed, 20 Jan 2021 09:38:25 -0500 Subject: [PATCH] fix: export MixedSchema to fix ts with --declarations (#1204) Fixes ts error `Exported variable 'Schema' has or is using name 'MixedSchema' from external module "x/node_modules/yup/lib/mixed" but cannot be named.` with --declarations builds. The MixedSchema class needs to be exported so it can be used in declaration files. --- src/mixed.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mixed.ts b/src/mixed.ts index 1157f2c16..f73574091 100644 --- a/src/mixed.ts +++ b/src/mixed.ts @@ -4,7 +4,7 @@ import { AnyObject, Maybe, Optionals } from './types'; import type { Defined } from './util/types'; import BaseSchema from './schema'; -declare class MixedSchema< +export declare class MixedSchema< TType = any, TContext = AnyObject, TOut = TType