Answer the question
In order to leave comments, you need to log in
How to extend the functionality of the library?
There is a library with the following structure:
declare class LibName extends events.EventEmitter { }
declare namespace LibName {
...
class Server extends events.EventEmitter {}
...
}
export = LibName
import * as LibName from "libname";
class CustomLibName extends LibName {}
namespace CustomLibName {
export class Server extends LibName.Server {}
}
export = CustomLibName
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question