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

Added Type Declarations for TypeScript Support and Better IntelliSense #10

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

JeffMII
Copy link

@JeffMII JeffMII commented Feb 11, 2022

With the help of @joelyjoel 's issue, I added type declarations to the project. The majority of the work was done by @joelyjoel . It was just a matter of updating it to match the current version of the project and adding a couple of small improvements to make the IntelliSense work great with the Definition object that's returned from the lookup method.

@JeffMII JeffMII closed this Feb 11, 2022
@JeffMII
Copy link
Author

JeffMII commented Feb 11, 2022

Looks like I did a few things wrong. Don't need some of the files and the package.json needs to define where the type declarations can be found. Pushed the fixes. I'll open the pull request again.

@JeffMII JeffMII reopened this Feb 11, 2022
… as an array; after verifying the actual type, it shouldn't have been declared as an array; instead, the lookup function returns a Promise<Definition[]> instead of just a Promise<Definition>
@sergi-s
Copy link

sergi-s commented May 27, 2024

can I ask why none merged this PR?, it is very useful

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