fix(types): Add Missing Methods & Props to "./packages/shell-electron/types" #1397
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
I noticed that the
init
method exported out ofpackages\shell-electron\index.js
was missing from the type file. This pull request fixes that.Additionally the type information for the
connect
method was missing the{ io, showToast, app}
object as an optional prop. This pull request adds it as a parameter named "options", where the option properties are defined in theConnectOptions
interface.You'll also notice that this pull request adds
vue
as a dev dependency so that theVue
type can included in the type definitionsBefore
Before this change Typescript show type errors
After
Typescript errors are gone
![image](https://user-images.githubusercontent.com/31548851/113637322-e38e7b00-9639-11eb-8be6-7d02c5272a70.png)