Skip to content

Re-export don't work with TypeDoc #100

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

Closed
Cloud2109 opened this issue Jun 1, 2015 · 1 comment
Closed

Re-export don't work with TypeDoc #100

Cloud2109 opened this issue Jun 1, 2015 · 1 comment
Labels
no bug This is expected behavior

Comments

@Cloud2109
Copy link

  1. import XXX = require('./lib/XXX');
  2. export * from './lib/Properties';
  3. export function create(): XXX.XXX {
  4. return new XXX.XXX();
    
  5. }

Throw error:

execute command line code:

typedoc --out ....\XXX\XXX\public\XXX\ --mode modules --module commonjs --target ES5 --theme default --name XXX --hideGenerator .\

Using TypeScript 1.4.1 from C:\Users\XXX\AppData\Roaming\npm\node_modules\typedoc\node_modules\typescript\bin
Error: C:/Users/XXX/Documents/Visual Studio 2013/Projects/XXX/XXX/app.ts(3)
Declaration or statement expected.
Error: C:/Users/XXX/Documents/Visual Studio 2013/Projects/XXX/XXX/app.ts(3)
Expression expected.
Error: C:/Users/XXX/Documents/Visual Studio 2013/Projects/XXX/XXX/app.ts(3)
';' expected.
Error: C:/Users/XXX/Documents/Visual Studio 2013/Projects/XXX/XXX/app.ts(3)
Cannot find name 'from'.

@sebastian-lenz
Copy link
Member

Exports like this are only supported with TypeScript 1.5. TypeDoc runs on TypeScript 1.4 and therefore cannot parse this kind of statement. Support for TypeScript 1.5 is in the making, see #95, it will be available after the official release of the new compiler. Exports like this are part of the new ES6 modules wich are a planned feature of an upcoming TypeDoc version, see #98.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no bug This is expected behavior
Projects
None yet
Development

No branches or pull requests

2 participants