Skip to content

Commit

Permalink
fix: export MixedSchema to fix ts with --declarations (#1204)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
janicduplessis authored Jan 20, 2021
1 parent 3b67dc0 commit 67c96ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mixed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67c96ae

Please sign in to comment.