Skip to content

Migrate to latest typescript - #71

Merged
niemyjski merged 2 commits into
exceptionless:feature/latest-tsfrom
caesay:migrate-to-latest-ts
Apr 10, 2017
Merged

Migrate to latest typescript#71
niemyjski merged 2 commits into
exceptionless:feature/latest-tsfrom
caesay:migrate-to-latest-ts

Conversation

@caesay

@caesay caesay commented Apr 10, 2017

Copy link
Copy Markdown
Contributor

No description provided.

@CLAassistant

CLAassistant commented Apr 10, 2017

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Comment thread src/submitSync.ts

let jsonStream = new stream.Writable();
jsonStream._write = (chunk: Buffer | string, encoding: string, next: Function) => {
(jsonStream as any)._write = (chunk: Buffer | string, encoding: string, next: Function) => {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

_write became protected in the new typing, so need to access via an any cast.

@caesay

caesay commented Apr 10, 2017

Copy link
Copy Markdown
Contributor Author

So I've tested this upgrade and everything seems to work, but I can't get the tests to run.

TsProject throws an error when trying to run the tests:

TypeError: Cannot read property 'flags' of undefined

@niemyjski I also see that there are mentions of this repo and this issue on the following thread where you also commented:
ToddThomson/tsproject#84

@niemyjski
niemyjski changed the base branch from master to feature/latest-ts April 10, 2017 16:16
@niemyjski
niemyjski merged commit 184ca6a into exceptionless:feature/latest-ts Apr 10, 2017
@niemyjski

Copy link
Copy Markdown
Member

Thanks for the PR! I'm going to work with TSProj and see if I can get that figured out.

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