I found the following Typescript code on a stackoverflow site, but I couldn't understand the meaning of the 'new' keyword in the type definition.
type Target = {
new (...args: any[]): any,
name: string
};
Please could someone explain it to me.
I found the following Typescript code on a stackoverflow site, but I couldn't understand the meaning of the 'new' keyword in the type definition.
type Target = {
new (...args: any[]): any,
name: string
};
Please could someone explain it to me.