/module/c.js, attempting to export name and age.
export const name = 'string1';
export const age = 43;
In b.ts, I'm trying to import the variables name and age from this .ts file
import { name, age } from "./module/c";
console.log(name, age);
During compilation, an error occurs: "TS7016: Could not find a declaration file for module './module/c'."
After some searching, I discovered a workaround: using // @ts-ignore, which can bypass syntax validation.
// @ts-ignore
import { name, age } from "./module/c";
console.log(name, age);
Question: Is there a more conventional way to resolve this issue? Any examples would be greatly appreciated. Thank you!