If a package delcares a class internally on an NgModule, ngcc needs to be able to add a public export to this class's type. Previously, if the typing file for the declared is not imported from the typings entry-point file, then ngcc cannot find it. Now we try to guess the .d.ts files from the equivalent .js files. PR Close #31411