Topics: General
Jan 5, 2014 at 7:23 PM
I have a factory module which use require to create the desired objects
getProviderManager(providername: string): VideoProviderManager {

    var providerManager = require(providername);
the VideoProviderManager is decalred as export class VideoProviderManager
however i have lots of error that VideoProviderManager isnt known and
i have tried
import VideoProviderManager = require("VideoProvider/VideoProviderManager");
but without sucess. i am trying to use combination of require and export classes with namespace of a module
is it possible?`
Jan 6, 2014 at 5:20 PM
Does VideoProviderManager come from a particular module? If so, you'll need to import that module to get access to the type using the TypeScript 'import' syntax.

You can also alias it using similar syntax;
import VideoProviderModule = require("VideoProvider");
import VideoProviderManger = VideoProviderModule.VideoProviderManager;