This is a copy of https://github.com/google/blockly/pull/5846/files against master, which will fix https://github.com/google/blockly/issues/5841 in the next patch release. When we released v7 we committed to making patch releases for typescript definition errors, since our pipeline for typings was convoluted this quarter.
* Add typings modules to match UMD modules.