UNPKG

@catladder/pipeline

Version:

Panter workflow for cloud CI/CD and DevOps

23 lines 1.18 kB
import type { DeployConfigCustom } from "./custom"; import type { DeployConfigDockerTag } from "./dockerTag"; import type { DeployConfigCloudRun } from "./googleCloudRun"; import type { DeployConfigKubernetes } from "./kubernetes"; export * from "./custom"; export * from "./googleCloudRun"; export * from "./kubernetes"; export * from "./dockerTag"; export type DeployConfig = DeployConfigKubernetes | DeployConfigCustom | DeployConfigCloudRun | DeployConfigDockerTag; export type DeployConfigType = DeployConfig["type"]; export type DeployConfigGeneric<T extends DeployConfigType> = Extract<DeployConfig, { type: T; }>; export declare const isOfDeployType: <T extends ("kubernetes" | "custom" | "dockerTag" | "google-cloudrun")[]>(t: DeployConfig | false | null | undefined, ...types: T) => t is Extract<DeployConfigKubernetes, { type: T[number]; }> | Extract<DeployConfigCustom, { type: T[number]; }> | Extract<DeployConfigCloudRun, { type: T[number]; }> | Extract<DeployConfigDockerTag, { type: T[number]; }>; export declare const getDeployConfigType: (t: DeployConfig | false | null | undefined) => "kubernetes" | "custom" | "dockerTag" | "google-cloudrun" | undefined;