Skip to content

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

Merged
lance merged 1 commit into
cloudevents:masterfrom
lance:fix-ts-again
Jun 4, 2020
Merged

fix: add correct types to improve usage in TypeScript projects#202
lance merged 1 commit into
cloudevents:masterfrom
lance:fix-ts-again

Conversation

@lance
Copy link
Copy Markdown
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 requested review from danbev, fabiojose and helio-frota June 3, 2020 18:05
@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
Comment thread test-ts/http_emitter_test.ts
Copy link
Copy Markdown
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