Skip to content

Make some types from persist midleware exportable #2221

Answered by dai-shi
chiralium asked this question in Ideas
Discussion options

You must be logged in to vote

It's intentional. WithFoo type is for module argumentation, and not something that we specify from outside.

If you want to create your own middleware/wrapper that has precise typing, you need to follow the TypeScript guide, and the guide could be improved.
On the other hand, if we want to bypass some typings, it's probably possible with assertion -> #2222.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chiralium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants