Reexport class in Typescript

I found answer by myself

https://www.typescriptlang.org/docs/handbook/modules.html @Re-exports

Code to do what I wanted

//c.ts
export {A} from "a";
export {B} from "b";

Default export

Assuming you have file

//d.ts
export default class D{}

Re-export have to look like this

//reexport.ts
export { default } from "d";

or

//reexport.ts
export { default as D } from "d";

What happens here is that you’re saying “I want to re-export the default export of module “D” but with the name of D

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)