@untidy/mobygames
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -75,3 +75,3 @@ /// <reference types="node" resolution-mode="require"/> | ||
export type QueriesRandom = Omit<QueriesBase, 'offset'>; | ||
export type QueriesGameById = Omit<QueriesBase, 'limit' | 'offset'>; | ||
export type QueriesGameById = Record<'format', 'normal' | 'brief' | 'full'>; | ||
export interface GetGenres { | ||
@@ -89,3 +89,3 @@ genres: Genre[]; | ||
export type GetGamesRandom<Q extends QueriesRandom> = Q['format'] extends 'normal' ? GamesType<GameNormal> : Q['format'] extends 'brief' ? GamesType<GameBrief> : Q['format'] extends 'id' ? GamesType<number> : GamesType<number>; | ||
export type GetGameById<Q extends QueriesGameById> = Q['format'] extends 'normal' ? GameNormal : Q['format'] extends 'brief' ? GameBrief : Q['format'] extends 'id' ? GamesType<number> : GameNormal; | ||
export type GetGameById<Q extends QueriesGameById> = Q['format'] extends 'normal' ? GameNormal : Q['format'] extends 'brief' ? GameBrief : Q['format'] extends 'full' ? GameNormal : GameNormal; | ||
export interface GetGamePlatforms { | ||
@@ -92,0 +92,0 @@ platforms: Platform[]; |
{ | ||
"name": "@untidy/mobygames", | ||
"description": "Client library for MobyGames API in Node.js", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"type": "module", | ||
@@ -19,2 +19,9 @@ "author": "falsepopsky", | ||
], | ||
"keywords": [ | ||
"api", | ||
"database", | ||
"games", | ||
"videogames", | ||
"mobygames" | ||
], | ||
"devDependencies": { | ||
@@ -21,0 +28,0 @@ "@types/node": "^20.11.30", |
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
26671