Skip to content

Update type define of RouteConfig.props #2365

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

Closed
wants to merge 3 commits into from
Closed

Update type define of RouteConfig.props #2365

wants to merge 3 commits into from

Conversation

xlfsummer
Copy link

In route config, we can pass an object to 'props' property, which key is the name of router view, and type of value is one of boolean, object or function (RoutePropsFunction).

xlfsummer and others added 2 commits August 27, 2018 14:15
In route config, we can pass an object to 'props' property, which key is the name of router view, and type of value is one of boolean, object or function (RoutePropsFunction).
Copy link
Member

@posva posva left a comment

Choose a reason for hiding this comment

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

Sorry for the delay and thanks!

Copy link
Member

@posva posva left a comment

Choose a reason for hiding this comment

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

Okay, I will need to check the typings tests. Feel free to do if you can!

"props" should be an optional property of "RouteConfig".
Copy link
Member

@posva posva left a comment

Choose a reason for hiding this comment

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

of course! I copy/pasted too fast
Thank you

@posva
Copy link
Member

posva commented Aug 24, 2019

oh btw, if you want to add some typing tests, you can otherwise I would add them later on

@posva
Copy link
Member

posva commented Jan 14, 2020

I this and it seems like the current type already allows passing an object. If someone finds a failing case, please open an issue or a pr with the failing test case (it can be added to types/test/index.ts

@posva posva closed this Jan 14, 2020
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