beforeClose function in the type definition has no parameters, yet in drop source code (DropInstance class, beforeCloseHandler method) two parameters are passed to this function.
First the JavaScript event object, that triggered the close, and then the drop instance object. The signature was updated to reflect this.
* Use "lib" in tsconfigs instead of "target".
Only add "dom" to libraries that need it. This is determined by a script, so many libraries that have "dom" maybe should not.
* Update new-package and readme
* Add back "target" where necessary