Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wsmd/mapkit-typescript
Typescript type definitions for MapKit JS
https://github.com/wsmd/mapkit-typescript
apple mapkit mapkit-js types typescript typings
Last synced: 19 days ago
JSON representation
Typescript type definitions for MapKit JS
- Host: GitHub
- URL: https://github.com/wsmd/mapkit-typescript
- Owner: wsmd
- License: mit
- Created: 2019-01-13T00:18:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-11T20:51:18.000Z (over 4 years ago)
- Last Synced: 2024-10-11T12:56:05.682Z (about 1 month ago)
- Topics: apple, mapkit, mapkit-js, types, typescript, typings
- Language: TypeScript
- Homepage:
- Size: 55.7 KB
- Stars: 14
- Watchers: 3
- Forks: 6
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/wsmd/mapkit-typescript.svg?branch=master)](https://travis-ci.org/wsmd/mapkit-typescript)
[![License](https://img.shields.io/github/license/wsmd/mapkit-typescript.svg)](https://github.com/wsmd/mapkit-typescript/blob/master/LICENSE)
[![Current Release](https://img.shields.io/npm/v/mapkit-typescript.svg)](https://www.npmjs.com/package/mapkit-typescript)# mapkit-typescript
TypeScript type definitions for [MapKit JS](https://developer.apple.com/documentation/mapkitjs).
## Installation
First, install the types in your project:
```sh
# using npm
npm install --save-dev mapkit-typescript# using yarn
yarn add --dev mapkit-typescript
```Then, add `node_modules/mapkit-typescript` to your `tsconifg.json` file like so:
```json
{
"compilerOptions": {
"typeRoots": [
"node_modules/mapkit-typescript",
"node_modules/@types"
]
}
}
```This will enable the TypeScript compiler to find and use this typing since it is not installed under `node_modules/@types`.
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.
## Legal
MapKit and the Apple logo are trademarks of Apple Inc., registered in the U.S. and other countries.