In my TypeScript program I want to extend a class that is declared in a library. The trick is that the library doesn\'t "export" it so I can not access it directly