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

begin TypeScript conversion #17

Merged
merged 29 commits into from
Jun 3, 2021
Merged

begin TypeScript conversion #17

merged 29 commits into from
Jun 3, 2021

Conversation

ericcarraway
Copy link
Owner

This PR begins the process of converting this package to TypeScript.

The type definitions aren't comprehensive yet. There are lots of any and object placeholders for now.

I've also switched from Mocha + Chai to Jest for unit tests, though the unit tests are still superficial. I want to write some proper tests soon.

The code in the examples/ folder is still in vanilla Node.js. These examples import the "built" API client instance from the dist/ folder.

added notes RE: endpoints that changed from `/scores/` to `/slices/`
and now use `scorehash` instead of `slug`

#17
… Node

should fix `Error: Cannot find module 'fs/promises'`
add question to follow up on about `duplicateSliceByScorehash`
and in which folder or subfolder the newly created slice will be created

add documentation to `listFolders` about `listSubfoldersByParentId`
and how it should be used to list subfolders within a given folder
@ericcarraway ericcarraway merged commit 6724fc2 into primary Jun 3, 2021
@ericcarraway ericcarraway deleted the typescript branch June 3, 2021 11:47
@ericcarraway ericcarraway mentioned this pull request Jun 4, 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.

1 participant