Context
I m developping an application in which I need to load an array in a method like
getRouteFromLink(link:String):Array {
array = require(link);
return array;
}
Does it exist something giving me the possibilité to make without declaring it at the top of the file ?
Sure, Typescript supports Optional Module Loading. From the Handbook: