Skip to content

Export MixedSchema to fix ts with --declarations - #1204

Merged
jquense merged 1 commit into
jquense:masterfrom
janicduplessis:patch-1
Jan 20, 2021
Merged

Export MixedSchema to fix ts with --declarations#1204
jquense merged 1 commit into
jquense:masterfrom
janicduplessis:patch-1

Conversation

@janicduplessis

Copy link
Copy Markdown
Contributor

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.

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.
@Gohsato

Gohsato commented Jan 4, 2021

Copy link
Copy Markdown

I think this pr would solve #1162!

@MartinCerny-awin

Copy link
Copy Markdown

Can we please merge this PR?

@jquense

jquense commented Jan 11, 2021

Copy link
Copy Markdown
Owner

Haven't had the time to try this out, but hoping to make some this week

@Shandur

Shandur commented Jan 15, 2021

Copy link
Copy Markdown

@jquense Looking forward to seeing it merged too 👍

@dko-slapdash

Copy link
Copy Markdown

+1

It's a simple change consistent to what e.g. object.d.ts or number.d.ts have, and no risk of regressions @jquense - the button "Merge" can just be pressed without even testing.

@jquense

jquense commented Jan 20, 2021

Copy link
Copy Markdown
Owner

every TS change needs to be tested, unfortunately @dko-slapdash the smallest change can have large, or to picture effects.

@jquense
jquense merged commit 67c96ae into jquense:master Jan 20, 2021
@janicduplessis
janicduplessis deleted the patch-1 branch January 21, 2021 18:11
@janicduplessis

Copy link
Copy Markdown
Contributor Author

Thanks @jquense !

@pkolt

pkolt commented Jan 24, 2021

Copy link
Copy Markdown

@jquense Hi! When will the version with this patch be released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants