Lib: Add possible "expand" fields to schema
This commit is contained in:
@ -1,3 +1,6 @@
|
|||||||
|
// NOTE: The "expand" fields might be undefined.
|
||||||
|
// I'm not using "expand?" because I won't check for undefined anyways.
|
||||||
|
|
||||||
// Application Data
|
// Application Data
|
||||||
|
|
||||||
export interface Graphic {
|
export interface Graphic {
|
||||||
@ -36,6 +39,9 @@ export interface Driver {
|
|||||||
headshot_url?: string;
|
headshot_url?: string;
|
||||||
team: string;
|
team: string;
|
||||||
active: boolean;
|
active: boolean;
|
||||||
|
expand: {
|
||||||
|
team: Team;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Race {
|
export interface Race {
|
||||||
@ -56,6 +62,9 @@ export interface Substitution {
|
|||||||
substitute: string;
|
substitute: string;
|
||||||
for: string;
|
for: string;
|
||||||
race: string;
|
race: string;
|
||||||
|
expand: {
|
||||||
|
race: Race;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// User Data
|
// User Data
|
||||||
|
|||||||
Reference in New Issue
Block a user