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

fix: add correct types to improve usage in TypeScript projects #202

Merged
merged 1 commit into from
Jun 4, 2020

Conversation

lance
Copy link
Member

@lance lance commented Jun 3, 2020

This commit modifies the existing TypeScript files with improved
(read: functional) typings for function parameters. This became an
issue when trying to use the module in an existing TypeScript module.

Tests for the TypeScript files have been moved to a new test folder
specifically for testing TypeScript usage via ts-node.

Signed-off-by: Lance Ball lball@redhat.com

This commit modifies the existing TypeScript files with improved
(read: functional) typings for function parameters. This became an
issue when trying to use the module in an existing TypeScript module.

Tests for the TypeScript files have been moved to a new test folder
specifically for testing TypeScript usage via ts-node.

Signed-off-by: Lance Ball <lball@redhat.com>
@lance lance added the type/bug Something isn't working label Jun 3, 2020
@lance lance self-assigned this Jun 3, 2020
@lance lance changed the title fix: add correct types to improve TypeScript behavior fix: add correct types to improve usage in TypeScript projects Jun 3, 2020
test-ts/http_emitter_test.ts Show resolved Hide resolved
Copy link
Contributor

@lholmquist lholmquist left a comment

Choose a reason for hiding this comment

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

npm install and npm test work

@lance lance merged commit da365e0 into cloudevents:master Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants