Skip to content

Fix/update type definitions #409

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

Merged
merged 2 commits into from
Jan 2, 2019
Merged

Fix/update type definitions #409

merged 2 commits into from
Jan 2, 2019

Conversation

acidbiscuit
Copy link
Contributor

@acidbiscuit acidbiscuit commented Jan 2, 2019

Currently, navigateTo accepts props property to pass props to navigated component, though type definitions of NavigationEntry do not describe such option. As instead, it suggests to pass properties via context.propsData, which is redundant.

In addition, usage of valid way to pass props will cause linting issues, due to mismatching type definition.

Fixed type for NavigationEntry by extending it with props field.

Also, removed unused type import Size.

@rigor789
Copy link
Member

rigor789 commented Jan 2, 2019

Hi @acidbiscuit! Thanks for the PR! I'm merging the changes, but I'm will not be able to push a release at the moment.

@rigor789 rigor789 merged commit 589c4e9 into nativescript-vue:master Jan 2, 2019
khawarizmus added a commit to khawarizmus/nativescript-vue that referenced this pull request Jan 27, 2019
updated to the latest master changes
rigor789 pushed a commit that referenced this pull request Mar 18, 2019
* add registerElement to NativeScriptVueConstructor

Fix:  `property 'registerElement' does not exist on type 'NativeScriptVueConstructor'.`

Currently, the function type is defined but was not included in the constructor.

* updated in contrast to #409

updated to the latest master changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants