From 73df15a188bc5468efae4ca314d2366ee4f5b98b Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Sun, 26 Jan 2025 13:02:26 +0100 Subject: [PATCH] Lib: Add possible "expand" fields to schema --- src/lib/schema.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib/schema.ts b/src/lib/schema.ts index cd28ab3..6196ae6 100644 --- a/src/lib/schema.ts +++ b/src/lib/schema.ts @@ -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 export interface Graphic { @@ -36,6 +39,9 @@ export interface Driver { headshot_url?: string; team: string; active: boolean; + expand: { + team: Team; + }; } export interface Race { @@ -56,6 +62,9 @@ export interface Substitution { substitute: string; for: string; race: string; + expand: { + race: Race; + }; } // User Data