Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wsmd/musickit-typescript
Typescript type definitions for MusicKit JS
https://github.com/wsmd/musickit-typescript
apple apple-music apple-musickit musickit musickitjs typescript typescript-definitions typings
Last synced: 3 months ago
JSON representation
Typescript type definitions for MusicKit JS
- Host: GitHub
- URL: https://github.com/wsmd/musickit-typescript
- Owner: wsmd
- License: mit
- Created: 2019-01-10T04:59:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-27T19:47:47.000Z (over 4 years ago)
- Last Synced: 2024-10-23T13:43:56.016Z (3 months ago)
- Topics: apple, apple-music, apple-musickit, musickit, musickitjs, typescript, typescript-definitions, typings
- Language: TypeScript
- Homepage:
- Size: 50.8 KB
- Stars: 17
- Watchers: 2
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/wsmd/musickit-typescript.svg?branch=master)](https://travis-ci.org/wsmd/musickit-typescript)
[![License](https://img.shields.io/github/license/wsmd/musickit-typescript.svg)](https://github.com/wsmd/musickit-typescript/blob/master/LICENSE)
[![Current Release](https://img.shields.io/npm/v/musickit-typescript.svg)](https://www.npmjs.com/package/musickit-typescript)# musickit-typescript
TypeScript type definitions for [MusicKit JS](https://developer.apple.com/documentation/musickitjs).
## Installation
First, install the types in your project:
```sh
# using npm
npm install --save-dev musickit-typescript# using yarn
yarn add --dev musickit-typescript
```Then, add `node_modules/musickit-typescript` to your `tsconifg.json` file like so:
```json
{
"compilerOptions": {
"typeRoots": [
"node_modules/musickit-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
MusicKit and the Apple logo are trademarks of Apple Inc., registered in the U.S. and other countries.