TypeScript TS2440 with @cesium/widgets: PickId import conflicts with local declaration

Hi Cesium community,

I ran into a TypeScript build error that appears to come from @cesium/widgets typings:

After checking the declaration files, I found:

So this looks like a duplicated declaration in generated typings. It is not Angular-specific, but it surfaced during Angular build/TypeScript checks.

GitHub issue for tracking:
https://github.com/CesiumGS/cesium/issues/13274

Environment:

  • @cesium/widgets: 14.3.0

  • @cesium/engine: 22.3.0

  • cesium: 1.138.0

  • typescript: 5.1.6

  • Angular: 16.2.x

  • OS: Windows

Temporary workaround: skipLibCheck: true (or --skipLibCheck true) suppresses the error, but I’m looking for an official recommended approach.

Has anyone hit the same issue, and is there a preferred workaround until a fix is released?

Thanks!

Just to have a cross-link: This was also opened as an issue at TS2440 in @cesium/widgets typings: PickId is imported and redeclared in index.d.ts · Issue #13274 · CesiumGS/cesium · GitHub (and I think that it’s OK to treat that as an issue). (I’d usually link from the issue to this thread as well, but GitHub is currently glitching out and not allowing comments to be added there)