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

Add TypeScript definition #188

Merged
merged 11 commits into from
Mar 21, 2019
Merged

Add TypeScript definition #188

merged 11 commits into from
Mar 21, 2019

Conversation

BendingBender
Copy link
Contributor

@BendingBender BendingBender commented Mar 7, 2019

Waiting for tsdjs/tsd#13 until this can be merged.

index.d.ts Outdated Show resolved Hide resolved
index.d.ts Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Owner

Let me know if you have any feedback on how the execa API could be improved, especially regarding making TS usage easier. We're planning to do a major version, so we could do breaking changes to improve the UX.

@sindresorhus
Copy link
Owner

Waiting for tsdjs/tsd#13 until this can be merged.

Make sure you check out the latest changes in master when you get back to the types here. There are some API changes.

@sindresorhus sindresorhus added this to the v2 milestone Mar 10, 2019
@BendingBender
Copy link
Contributor Author

Let me know if you have any feedback on how the execa API could be improved, especially regarding making TS usage easier. We're planning to do a major version, so we could do breaking changes to improve the UX.

It's actually hard to say for me, I don't really use this module.

My only problem with the current API is the usage of encoding: null to switch to Buffer encoding. I know that this is how node APIs work, I still find it quite unnatural. However, for the sake of compatibility with node, I'd leave it like this.

@BendingBender BendingBender changed the title WIP: Add TypeScript definition Add TypeScript definition Mar 15, 2019
index.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
@sindresorhus sindresorhus requested a review from ehmicky March 15, 2019 11:20
Copy link
Collaborator

@ehmicky ehmicky left a comment

Choose a reason for hiding this comment

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

👍

@sindresorhus
Copy link
Owner

sindresorhus commented Mar 19, 2019

@BendingBender Can you update for #193 ? I'm trying to remove most of the null usage.

@BendingBender
Copy link
Contributor Author

Yeah, it's on my radar 😜

@sindresorhus
Copy link
Owner

And also 79356cc

@BendingBender
Copy link
Contributor Author

BendingBender commented Mar 20, 2019

Waiting for tsdjs/tsd#19

@sindresorhus sindresorhus merged commit 3db7d2c into sindresorhus:master Mar 21, 2019
mikeharder added a commit to mikeharder/azure-sdk-for-js that referenced this pull request Dec 6, 2019
- dotenv
  - Types are included as of 8.2.0
  - motdotla/dotenv#430
- execa
  - Types are included as of 2.0.0
  - sindresorhus/execa#188
- nock
  - Types are included as of 11.3
  - nock/nock#1670
mikeharder added a commit to Azure/azure-sdk-for-js that referenced this pull request Dec 9, 2019
- dotenv
  - Types are included as of 8.2.0
  - motdotla/dotenv#430
- execa
  - Types are included as of 2.0.0
  - sindresorhus/execa#188
- nock
  - Types are included as of 11.3
  - nock/nock#1670
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