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

update typescript #1014

Merged
merged 3 commits into from Apr 28, 2019
Merged

update typescript #1014

merged 3 commits into from Apr 28, 2019

Conversation

just-boris
Copy link
Contributor

@just-boris just-boris commented Apr 16, 2019

Bring the latest typescript version in.

@just-boris just-boris marked this pull request as ready for review April 16, 2019 11:32
if (reflection instanceof DeclarationReflection) {
file.reflections.push(reflection);
}

reflection.sources.push({
sources.push({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change is needed, because file.reflections.push(reflection) can potentially mutate sources key. Without this change there is an "object can be possibly undefined" error.

I guess, typescript 3.4 became smarter and requires us to have an explicit stored reference to the array.

@just-boris
Copy link
Contributor Author

@aciccarello do you need anything else from me before this PR can be merged?

@aciccarello
Copy link
Collaborator

@just-boris Thanks for identifying the new compilation errors. Hopefully I've found a way to avoid the variable assignment. Honestly is surprised me that typedoc complained about the existing code but then accepted that the array would be defined. Once this passes CI we should be able to merge.

@aciccarello aciccarello merged commit 7ba1a8c into TypeStrong:master Apr 28, 2019
@just-boris
Copy link
Contributor Author

Awesome! Thank you!

@webmaster128
Copy link

Great stuff! @aciccarello could you release typedoc with typescript 3.4 support?

@just-boris just-boris mentioned this pull request May 9, 2019
1 task
@styu
Copy link
Contributor

styu commented May 31, 2019

@aciccarello just curious when you plan on releasing again? Would love to use this with TS 3.4!

@Gerrit0
Copy link
Collaborator

Gerrit0 commented May 31, 2019

@styu a release is in progress, there appear to be a couple problems with the default theme which we are trying to address.

@ftrimble
Copy link

ftrimble commented Jul 1, 2019

Seems like you guys should mark this as a peer dependency so that you don't have to make a pr every time typescript releases a new version, and to prevent blocking people using this.

Any updates on when this will get released?

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.

None yet

6 participants