File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @untidy/mobygames ' : patch
3
+ ---
4
+
5
+ fix: The endpoint ` /v1/games/:game_id ` only supports the format ` brief ` , ` normal ` and ` full ` . Not
6
+ ` id ` .
7
+
8
+ Response from the endpoint:
9
+
10
+ ``` js
11
+
12
+ {
13
+ code: 13 ,
14
+ error: ' Invalid format' ,
15
+ message: ' Output format must be one of brief, normal, or full.'
16
+ }
17
+
18
+ ```
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export interface QueriesGamesRecent extends QueriesBase {
84
84
85
85
export type QueriesRandom = Omit < QueriesBase , 'offset' > ;
86
86
87
- export type QueriesGameById = Omit < QueriesBase , 'limit ' | 'offset ' > ;
87
+ export type QueriesGameById = Record < 'format' , 'normal ' | 'brief' | 'full '> ;
88
88
89
89
export interface GetGenres {
90
90
genres : Genre [ ] ;
@@ -126,8 +126,8 @@ export type GetGameById<Q extends QueriesGameById> = Q['format'] extends 'normal
126
126
? GameNormal
127
127
: Q [ 'format' ] extends 'brief'
128
128
? GameBrief
129
- : Q [ 'format' ] extends 'id '
130
- ? GamesType < number >
129
+ : Q [ 'format' ] extends 'full '
130
+ ? GameNormal
131
131
: GameNormal ;
132
132
133
133
export interface GetGamePlatforms {
You can’t perform that action at this time.
0 commit comments