-
Notifications
You must be signed in to change notification settings - Fork 709
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
TypeScript 2.0 Support #234
Comments
That would be because it doesn't understand options in the nightly. If someone wants to set up infrastructure for nightly builds, we can mirror TypeScript. |
Ok. I also found out that there are other new TS 2 features that isn't supported. And I think there is an bug here because my IO socket got closed again now when I tried to run the typedoc + typescript@next combo |
Is there any plan on when the new TS 2 features will be supported? |
Why not wait until it's released. Currently its only a beta. |
Real need supporting of TS2. My be you can release beta with supporting? |
As of June 30, Angular 2 is at RC4 and is already being used in production. Since Angular 2 depends on TypeScript 2.0, companies want to be able to generate source code documentation for their production software. A prerelease version of TypeDoc would be greatly appreciated. |
If you want to have tsdoc work with typescript@2.0.0, try the following
Note that this is only a hack to make it output properly, it doesn't support any of the new features. I actually have to flag |
Angular 2 depends on TypeScript 2.0??? Where does this come from? I'm working with TypeScript 1.8 and Angular 2 and it works finde and I can't find any reference to TypeScript 2.0 |
@DaSchTour yea it doesn't yet - angular core is 1.9 currently |
@DaSchTour. Angular, itself, has been on the 1.9 nightly since April: angular-cli master branch moved to 2.0 on July 26: One of the two major seed projects moved past 1.8 on The other is still at 1.8 So, yeah, it's time to move. |
And as you see not everybody can keep up with that pace. I'm always a friend of moving to the latest technology as fast as possible and I don't think that a seed project and the angular-cli are a good reference. And from my bit of work with typescript 2.0 I'm sure there is a lot of things to solve in the typescript compiler. |
Sorry, didn't recall the breaking changes:
It's kind of hokey, but you could contemplate targeting different versions of TypeScript:
|
Still, given that angular has clear intentions of deprecating 1.8 support, the breaking changes are minimal enough that it should be trivial to make a package 2.x compatible. I think for now it would be worth having a |
@zakhenry I'm still getting some errors with your version:
Note that i'm using the |
@niieani have you tried the lastest version I'm using? |
@zakhenry just tried it, but same problem occurs. Thanks for the quick response. |
@niieani ok, that's probably because |
TypeScript 2.0 now has a release candidate. |
Any update on Typescript 2.0 support? |
@blakeembrey This ticket should be reopened. #290 updates binary references, not adds ts 2 usage support |
@jasonswearingen my understanding is that #290 added initial support for compiling with TS 2.0 (thanks to @DatenMetzgerX!). However, more PRs are needed to implement support for TS 2.0 features (see #290 comment). I suggest that these be split into separate issues. |
I tried https://github.com/zakhenry/typedoc/releases/download/v0.4.6/typedoc-0.4.6.tgz and it works. I tried https://github.com/TypeStrong/typedoc/archive/v0.5.0.tar.gz (which was the branch that got merged in recently) and it did not work. Here's my tsconfig.json:
You can see there's no new 2.0 flags in there. Here's the error I'm seeing with the 0.5.0 release:
I agree this should be reopened. |
@landonpoch Can you be a little bit more specific... What means not working. Do you get an error message? Are you using any typedoc-plugins? |
@DatenMetzgerX Updated previous message to include stack trace. I'm not using any typedoc-plugins. |
It sounds like you're using it from GitHub? Did you remember to build the project? |
I didn't do anything special to the project after npm install. I just have the url in my package.json. Wasn't aware that pulling if off the URL required a build first. Now that I see 0.5.0 in npm, I tested it with that and it appears to be working. Thanks for the clarification! |
Same here, after upgrading to 0.5 i still get
running:
|
same for me... same error. Any solution on that?
|
If you are getting |
Hi guys, This is only a workaround that ignore paths and lib from handle as valid typescript options until @blakeembrey, during surfing into your code, I've found this: https://github.com/emilianosantucci/typedoc/blob/master/src/lib/utils/options/readers/arguments.ts#L28 It looks like a right approach for ignore unknown options but it seems not be implemented. |
I'm not really sure, sorry. The code is still 99% the original owners. I'm really only the shepherd of the project with the communities help 😄 If you have a fix I'd love to have it merged. I'd also love a great many things from this project, if someone does want to take it on in #256 - it'd be great to make it easier for people to contribute themselves, even right now it's hard for myself to navigate the codebase - it's using some unfamiliar patterns which makes it hard to improve. |
@emilianosantucci I installed from you fork
but same problem:
|
@daniele-zurico |
@daniele-zurico can you retry please? |
|
should be if (type && type.flag) |
@daniele-zurico, this seems to be another issue unlinked to my PR. |
If I try to use
typedoc
with nigthly build ortypescript@next
, it throw this:Error: Unknown option
strictNullChecks.
The text was updated successfully, but these errors were encountered: