TypeScript type definitions for Apple MapKit JS (v5.18.2). This package provides full type declarations for the MapKit JS library, enabling static type checking and autocompletion in TypeScript projects. Maintained by the community, updated irregularly to match MapKit JS releases. Key differentiator: it is the primary source of TypeScript types for MapKit JS, as Apple does not ship official types.
npm install mapkit-typescriptNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use mapkit-typescript to create a MapKit JS map with a centered region and hide the compass.
Add 'node_modules/mapkit-typescript' to typeRoots in tsconfig.json.
Use 'import * as mapkit from 'mapkit-typescript''.
Include <script src="https://cdn.apple-mapkit.com/mk/5.x.x/mapkit.js"></script> in your HTML.
Update to match new signature or pin to older version.
Add 'node_modules/mapkit-typescript' to the typeRoots array in tsconfig.json.
Replace 'import mapkit from ...' with 'import * as mapkit from ...'.
Add the MapKit JS script tag to your HTML page before the TypeScript module runs.
No dependency data recorded yet.