6

I have a mixed ts and js project that works fine with the allowJS: true setting in tsconfig.

I now want to use Project references which need composite: true which means the allowJS can't be used.

Does this mean I can only use Project references in a purely typescript project?

When I run tsc -b because the js files are not included the output code is missing declarations!

How can I still include the js code in my project but use the newer Project references?

0

1 Answer 1

2

TS 3.7 allows declaration and allowJs to be used together (PR). You should be able to use project references (requires declaration) together with compiled JavaScript source files now.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.