Pittan / musickit-typescript

Typescript type definitions for MusicKit JS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status License Current Release

musickit-typescript

TypeScript type definitions for MusicKit JS.

Installation

First, install the types in your project:

# 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:

{
  "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.

About

Typescript type definitions for MusicKit JS

License:MIT License


Languages

Language:TypeScript 96.7%Language:Shell 3.3%