This basically reverts commit 7e35810c7f which was a mistake - I forgot that there are no typings in types/, that's why it worked...
7e35810c7f