'Exported type alias 'AbstractConstructor' has or is using private name 'abstract'. NodeJS

My code is

export type AbstractConstructor<T = any> = abstract new (...args: any[]) => T;

and I get error

error TS4081: Exported type alias 'AbstractConstructor' has or is using private name 'abstract'.

1 export type AbstractConstructor<T = any> = abstract new (...args: any[]) => T;

Anyone ever get error, please help me, thanks you.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source