Skip to content
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

fix(types): Add Missing Methods & Props to "./packages/shell-electron/types" #1397

Merged
merged 3 commits into from
Nov 23, 2021

Conversation

joshmossas
Copy link

Hello,

I noticed that the init method exported out of packages\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 the ConnectOptions interface.

You'll also notice that this pull request adds vue as a dev dependency so that the Vue type can included in the type definitions

Before

Before this change Typescript show type errors

image
image

After

Typescript errors are gone
image

@lmscc
Copy link

lmscc commented Nov 8, 2021

nice

@Akryum Akryum changed the title Add Missing Methods & Props to "./packages/shell-electron/types" fix(types): Add Missing Methods & Props to "./packages/shell-electron/types" Nov 23, 2021
@Akryum Akryum merged commit b71ae4a into vuejs:legacy Nov 23, 2021
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.

3 participants