Open
Description
mapbox-gl-js version: 3.11.0
browser: any
node: v22.14.0
npm: 10.9.2 / pnpm: 10.7.1
Steps to Trigger Behavior
- Build a ts project using
skipLibCheck: false
Link to Demonstration
https://codesandbox.io/p/devbox/nifty-alex-kc6kw6
Expected Behavior
type definitions match and project compilation works without problems
Actual Behavior
> tsc && vite build
Error: node_modules/[email protected]/node_modules/mapbox-gl/dist/mapbox-gl.d.ts(11921,2): error TS2416: Property 'loadTile' in type 'RasterArrayTileSource' is not assignable to the same property in base type 'ISource'.
Type '(tile: RasterArrayTile, callback: Callback<undefined>) => void' is not assignable to type '(tile: Tile, callback: Callback<undefined>, tileWorkers?: { [key: string]: Actor$1; } | undefined) => void'.
Types of parameters 'tile' and 'tile' are incompatible.
Type 'Tile' is missing the following properties from type 'RasterArrayTile': entireBuffer, requestParams, _workQueue, _fetchQueue, and 11 more.
Error: node_modules/.pnpm/[email protected]/node_modules/mapbox-gl/dist/mapbox-gl.d.ts(11922,2): error TS2416: Property 'abortTile' in type 'RasterArrayTileSource' is not assignable to the same property in base type 'ISource'.
Type '(tile: RasterArrayTile) => void' is not assignable to type '(tile: Tile, callback?: Callback<undefined> | undefined) => void'.
Types of parameters 'tile' and 'tile' are incompatible.
Type 'Tile' is missing the following properties from type 'RasterArrayTile': entireBuffer, requestParams, _workQueue, _fetchQueue, and 11 more.
Error: node_modules/.pnpm/[email protected]/node_modules/mapbox-gl/dist/mapbox-gl.d.ts(11923,2): error TS2416: Property 'unloadTile' in type 'RasterArrayTileSource' is not assignable to the same property in base type 'ISource'.
Type '(tile: RasterArrayTile, _?: Callback<undefined> | null | undefined) => void' is not assignable to type '(tile: Tile, callback?: Callback<undefined> | undefined) => void'.
Types of parameters 'tile' and 'tile' are incompatible.
Type 'Tile' is missing the following properties from type 'RasterArrayTile': entireBuffer, requestParams, _workQueue, _fetchQueue, and 11 more.
ELIFECYCLE Command failed with exit code 2.
Error: Process completed with exit code 2.