-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
expose type for spotify web api object #101
Conversation
Thanks for your PR @amelialaundy! Since I’m not very familiar with TypeScript I would like someone else’s input to review this, though it sounds good to me. |
Yeah me too, do you know of someone? otherwise I can find some one to review it |
love the new feature |
thanks @tobi12345 |
@amelialaundy Let's merge this! We can always amend it if's not ideal. I just wonder what the changes in |
@JMPerez its the package-lock.json file that gets updated everytime a user does something with npm that changes node_modules or package.json, i.e npm install, so is expected |
I don't think |
Kind of, if any packages have a hat ^ at the beginning in package.json, when I run |
That's interesting. The Actually, If I run |
hmm, perhaps I was wrong, but I'm guessing |
also looking at the diff the original package-lock had hats for the version and those have been bumped to the highest and then the hat removed hmmm |
I'm going to merge this. We can always continue working on the dependencies in another commit. |
related to #44 (comment)
I would like to be able to return the instantiated client object as opposed to creating a new one each time or keeping the reference to the object within a class as so:
therefore:
This allows me to access all of the methods on the client object from calling functions and assign a type to
this.spotifyClient
previously you could not accessSpotifyWebApi.SpotifyWebApiJs
as per the issue linked aboveThe type is not available in the bindings currently as only the methods are exported, I'd like to propose something like this, this code change seems to work as I would like it to.