I'm trying to convert the foundation.js file to typescript to use it in my project. I tried using the command
tsc -d foundation.ts --out foundation.js and alternatively tsc -d foundation.d.ts --out foundation.js
I'm getting an error. "error TS5007: Cannot resolve referenced file: 'foundation.ts'."
Anyone solutions for this? or any other alternative to convert a .js to .d.ts file?