TypeScript type definitions for MapKit JS.
First, install the types in your project:
# using npmnpm install --save-dev mapkit-typescript# using yarnyarn add --dev mapkit-typescript
node_modules/mapkit-typescript to your
tsconifg.json file like so:
This will enable the TypeScript compiler to find and use this typing since it is not installed under
By default the compiler only looks at
node_modules/@types for type declarations. If
typeRoots does not already exist in the
tsconfig.json file, make sure to include
node_modules/@types as well.
MapKit and the Apple logo are trademarks of Apple Inc., registered in the U.S. and other countries.