Skip to content

docs: add typed custom produce function#1239

Open
oriondean wants to merge 1 commit into
immerjs:mainfrom
oriondean:docs/custom-produce-function
Open

docs: add typed custom produce function#1239
oriondean wants to merge 1 commit into
immerjs:mainfrom
oriondean:docs/custom-produce-function

Conversation

@oriondean

Copy link
Copy Markdown
Contributor

Resolves #898

A small addition to docs demonstrating TypeScript and React typed custom prouce functions.

@mweststrate mweststrate left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

First of all, thanks for adding this pattern! Secondly: sorry for the late response.

Would you mind moving this pattern to typescript.md instead (https://immerjs.github.io/immer/typescript)?

Feel free to add a link to produce.md though to highlight that advanced typing scenarios are covered there, that might now not immediately obvious indeed.

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.

How to type a custom produce function?

2 participants