#Is this possible to mix js with ts?
2 messages · Page 1 of 1 (latest)
If you have myfile.ts and myfile.js the ts file will be picked first. Also compilerOptions is a key of tsconfig not package.json .
2 messages · Page 1 of 1 (latest)
I wanted to use code wrote in service with js and call it from controller wrote in ts. I've tried and I can't import js file in ts controller. Also I've added in package.json to compiler options allowJs": true,"
If you have myfile.ts and myfile.js the ts file will be picked first. Also compilerOptions is a key of tsconfig not package.json .