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

✨ feat(typescript): add types of webhook definitions to use on other projects #78

Merged
merged 2 commits into from
Mar 22, 2020
Merged

✨ feat(typescript): add types of webhook definitions to use on other projects #78

merged 2 commits into from
Mar 22, 2020

Conversation

oscard0m
Copy link
Member

πŸ“ Summary

Add index.d.ts to expose types for a parsed version of index.json from external projects

β›± Motivation and Context

On the migration to TypeScript for webhooks.js this type would be necessary to be used in files like typescript-validate.ts

Copy link
Contributor

@gr2m gr2m left a comment

Choose a reason for hiding this comment

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

an index.d.ts is created and published to npm, see here for the latest version 7.1.0: https://unpkg.com/browse/@octokit/webhooks@7.1.0/index.d.ts. It's generated as part of the build script

@gr2m
Copy link
Contributor

gr2m commented Mar 22, 2020

Ah nevermind my comment, I mixed up packages πŸ€¦β€β™‚

@gr2m gr2m merged commit 77c7cd4 into octokit:master Mar 22, 2020
@github-actions
Copy link
Contributor

πŸŽ‰ This PR is included in version 3.4.0 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

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.

2 participants