From e5bb88c794695d890b6b76b6301552ba7ec6c5de Mon Sep 17 00:00:00 2001 From: "Andrew A. Barber" Date: Thu, 19 Dec 2024 20:47:34 +0000 Subject: [PATCH] fix: allow function-specific properties in environment overrides --- types/runtime.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/types/runtime.ts b/types/runtime.ts index 1844dd2..6f56ae0 100644 --- a/types/runtime.ts +++ b/types/runtime.ts @@ -83,5 +83,18 @@ export type GcpConfig = ( ) & { cloud: "gcp"; name?: string; - environmentOverrides?: Partial>>>; + environmentOverrides?: { + [env: string]: Partial< + Omit< + | HttpConfig + | EventConfig + | ScheduleConfig + | QueueConfig + | FirestoreConfig + | StorageConfig + | ScheduledJobConfig, + "type" | "cloud" // Prevent changing the function type or cloud provider in env overrides + > + >; + }; };