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

Port LastFm importer to typescript #787

Merged

Conversation

ishaanshah
Copy link
Collaborator

Description

Port LastFm importer to TypeScript.

Problem

Our javascript has no types and it is very hard to understand the code (or write new code)

Solution

Slowly convert everything to TypeScript.

@paramsingh paramsingh merged commit 07e4559 into metabrainz:param/api-service-ts Apr 11, 2020
paramsingh added a commit that referenced this pull request Apr 11, 2020
* First cut at converting api-service.js to typescript

* Convert APIService.test.js to TypeScript

* Fix tests and add maximum stack depth

* Fix test files

* Fixed the tests in APIService.ts

* Fix tests in Importer.test.ts

* Tests for LastFMImporter fixed

* All tests pass

* Add package-lock.json and update entrypoint

* Port LastFm importer to typescript (#787)

* Port type.ts to type.d.ts

* Fix ESLint errors

* Fix LastFM importer icons (#788)

* Fix icons

* Disable no-unused-vars

* Add tests for skipping listens if non 429 error codes

Co-authored-by: Ishaan Shah <ishaanshah@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants