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 a TS declaration file. #98

Closed
wants to merge 2 commits into from
Closed

Added a TS declaration file. #98

wants to merge 2 commits into from

Conversation

heksesang
Copy link

Here is my attempt at creating a .d.ts file to describe the types of the library. Adding such a file would make it easier to use the library in Typescript projects.

client_id: string
client_secret?: string
authorization: string
token: string
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

token doesn't seem to be a valid option for the constructor?

https://github.com/andreassolberg/jso#initializing-the-client

Copy link

@hubgit hubgit Aug 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind, apparently it's the endpoint URL for exchanging a code for an access token:
#89

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is at least optional, though.

@AntonioRedondo
Copy link

AntonioRedondo commented Dec 9, 2020

@andreassolberg no merging of this pull request? Having these TypeScript types for the library would be fantastic.

This pull request was closed.
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