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?
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?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Jan 23, 2023, 8:17 AM
you can import compiled ts in your js using