Version Compiling problem

Topics: General
Dec 7, 2012 at 5:50 PM


After installing verison of Typescript I am receiving the following error:
"exported function parameter has or is using private type 'vs'"

In version 0.8.1 I had no problem. To the is like this:

import vs = module("app/framework/ViewStack");
export module Framework {
 public static addViewStack( id: string, idContainer: string, 
                                    idParentContainer: string, idLoadingPanel: 
                                    string, loaded: bool ): vs.Framework.ViewStack {

The error is marked in the vs.Framework.ViewStack return type of addViewStack..

How can I solve this problem. My code has a lot of function declared like this.

Thanks in advance

Dec 10, 2012 at 8:27 PM

See discussion here. You have to now export your import:

export import vs = module("app/framework/ViewStack");

Dec 11, 2012 at 6:15 PM

It looks like this was a bug introduced in  Your imports should "just work" without having to do anything extra to be able to use and extend them.  You definitely shouldn't have to re-export your imports. 

In fact, the workaround looks like we're allowing something that probably shouldn't be allowed (re-exporting your imports).