Exported function parameter with private type
typescript
Solution
here is the solution http://typescript.codeplex.com/discussions/405800 , you have to "export import"
Problem
After installing verison 0.8.1.1 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. Now even if I unistall 0.8.1.1 and reinstall 0.8.1 problem stays. The code is like this: ``` import vs = module("app/framework/ViewStack"); export module Framework { export class ViewStacks { public static addViewStack( id: string, idContainer: string, idParentContainer: string, idLoadingPanel: string, loaded: bool ): vs.Framework.ViewStack { } } } In another file export module Framework { export class ViewStack { } } ``` The error is marked in the vs.Framework.ViewStack return type of addViewStack. The error points that vs.Framework.ViewStack is private, but it was imported by the import clause. By the way I am using Visual Studio Web Express 2012 and the the compiler command is: tsc --sourcemap --module amd ... If I change the return type to any it, of course, works. Nothing was changed and it allways worked. Every Class or Module that defines an exported variable with type of a class exported by another module the erros occurs. Can you help me ??? Thans in advance