Naimish Makwana

Naimish Makwana

  • 140
  • 13.5k
  • 180.1k

How to use .ts file module in .js file?

Jan 23 2023 7:27 AM

I have a .ts file with:

export module test.employee {

 export interface person {
	name: string;
	age: number;
  }
 
}

Now I want to import and use person interface/class in normal JS file. 

So how we can do that?


Answers (1)