Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Lazy Type #31

Merged
merged 1 commit into from
Jul 18, 2020
Merged

Conversation

Ryomasao
Copy link
Contributor

Hi! I want to use Yup.lazy, but I get a type error.

https://codesandbox.io/s/lingering-frog-0bryw?file=/src/App.tsx
image

It worked fine when I changed the type to any, so I added the Lazy type to Schema.
Lazy seems to be the same as the Schema type.

// tslint:disable-next-line:no-empty-interface
export interface Lazy extends Schema<any> {}

@bluebill1049
Copy link
Member

Thanks @Ryomasao

@bluebill1049 bluebill1049 merged commit 0b5601d into react-hook-form:master Jul 18, 2020
jorisre pushed a commit that referenced this pull request Feb 26, 2021
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.

2 participants