@types/apple-music-api
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for non-npm package Apple Music API 0.1 | ||
// Type definitions for non-npm package Apple Music API 0.2 | ||
// Project: https://developer.apple.com/documentation/applemusicapi/ | ||
@@ -13,2 +13,7 @@ // Definitions by: Noah Chase <https://github.com/nchase> | ||
// https://developer.apple.com/documentation/applemusicapi/albumresponse | ||
interface AlbumResponse { | ||
data: Album[]; | ||
} | ||
// https://developer.apple.com/documentation/applemusicapi/relationship | ||
@@ -131,3 +136,6 @@ interface Relationship<ResourceType> { | ||
attributes?: { | ||
albumName: string; | ||
// albumName might not actually be a required attribute of Album. | ||
// There may be a typo in Apple's documentation, their data doesn't | ||
// actually return this attribute for the example I picked and the description of the field references music videos, further increasingly the likelihood that it's just a typo): | ||
albumName?: string; | ||
artistName: string; | ||
@@ -139,2 +147,3 @@ artwork?: Artwork; | ||
genreNames: string[]; | ||
isCompilation: boolean; | ||
isComplete: boolean; | ||
@@ -157,3 +166,4 @@ isSingle: boolean; | ||
artists: Relationship<Artist>; | ||
genres: {}; | ||
tracks: Relationship<Song>; | ||
genres?: Relationship<Genre>; | ||
} | ||
@@ -160,0 +170,0 @@ |
{ | ||
"name": "@types/apple-music-api", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "TypeScript definitions for Apple Music API", | ||
@@ -19,3 +19,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -28,4 +28,4 @@ "type": "git", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "5a2e27c712ea3424b6ac747830ecf3ffe6dcbdb3d92177826d5126fd525e693a", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "b92385092fa27a49ab4ec1050f386a721b270a4a3e3801c7e74da60ace0e2b4c", | ||
"typeScriptVersion": "2.9" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/apple-music-api | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/apple-music-api. | ||
Additional Details | ||
* Last updated: Tue, 05 Nov 2019 21:19:13 GMT | ||
### Additional Details | ||
* Last updated: Wed, 29 Apr 2020 22:45:24 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Noah Chase <https://github.com/nchase>, and Useff Chase <https://github.com/useffc>. | ||
These definitions were written by [Noah Chase](https://github.com/nchase), and [Useff Chase](https://github.com/useffc). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8207
158