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 + > + >; + }; };