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

Updated lazy function docs #369

Closed
wants to merge 1 commit into from

Conversation

nikita-graf
Copy link
Contributor

A lazy function signature is missing a context parameter in the documentation. I simply added it to Readme. Not sure if it should be described more detailed.

Related to #366

Please let me know what do you think :)

count: 10
})
count: 10,
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This diff is caused by prettier in a pre-commit hook.

@@ -267,7 +267,7 @@ inst.cast({ foo: { bar: 'boom' } }, { context: { x: 5 } })
// { baz: 'boom', x: 5, { foo: { bar: 'boom' } }, }
```

#### `yup.lazy((value: any) => Schema): Lazy`
#### `yup.lazy((value: any, context: ?object) => Schema): Lazy`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its not actually context here but options which can contain context

@jquense jquense closed this Apr 23, 2019
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