Using this sample code in src/types/@angular/router/index.d.ts:
type MyRoutes = 'a' | 'b'
declare module '@angular/router' {
export declare interface Route {
path: MyRoutes,
foo: string, // Just for testing
}
}
Typescript successfully detects that Route.path should now be of type MyRoutes. However, it also hides the entire rest of the module. (in the image below, Routes and providedRoute should still be found)
How could I augment only this one interface w/o hiding the rest of the module?
Using typescript 5.3.3