Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Is it possible to use module paths without having to use /// reference path.. with a .d.ts file?

For example if I have this in my requirejs config file :

require.config(
    {
       paths: {
          test : "/test/test1/TestFile"
       }
    }
);

I want to use : import TestFile = require('test')

instead of having to use : import TestFile = require('/test/test1/TestFile')

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I want to use : import TestFile = require('test') instead of having to use : import TestFile = require('/test/test1/TestFile')

Not at the moment. You need to have a complete relative path OR use a module declaration.

FYI : grunt-ts can generate these long relative paths for you https://github.com/grunt-ts/grunt-ts/issues/85

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.