Skip to content

Updated lazy function docs#369

Closed
nikita-graf wants to merge 1 commit into
jquense:masterfrom
nikita-graf:lazy-validator-docs
Closed

Updated lazy function docs#369
nikita-graf wants to merge 1 commit into
jquense:masterfrom
nikita-graf:lazy-validator-docs

Conversation

@nikita-graf

Copy link
Copy Markdown
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 :)

Comment thread README.md
count: 10
})
count: 10,
});

Copy link
Copy Markdown
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.

Comment thread README.md
```

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

Copy link
Copy Markdown
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