This is a doc issue we can fix for 4.11. In the meantime you can work around this by copying the BaseLayerView2D typings from 4.9 into your project.
Suggested method as follows.
1. Create a typings folder with an extensions.d.ts file.
declare module "esri/views/2d/layers/BaseLayerView2D" {
class BaseLayerView2D {
layer: Layer;
tiles: Tile[];
view: MapView;
attach(): void;
detach(): void;
render(renderParameters: BaseLayerView2DRenderRenderParameters): void;
protected requestRender(): void;
tilesChanged(added: Tile[], removed: Tile[]): void;
}
export = BaseLayerView2D;
}
This is taken directly from the 4.9 typings.
2. Update your tsconfig.json to use the new typings file.
{
"compilerOptions": {
...
},
"include": [
"src/*",
"typings/*"
]
}
This should now let you use the correct typings.
Thanks!