UNPKG

@shopify/cli-kit

Version:

A set of utilities, interfaces, and models that are common across all the platform features

24 lines (23 loc) 641 B
/** * Enum that represents the environment to use for a given service. * * @readonly */ export declare enum Environment { Local = "local", Production = "production" } /** * Returns the environment to use for a given service. * * @param env - Environment variables. * @returns The environment to use for a given service. */ export declare function serviceEnvironment(env?: NodeJS.ProcessEnv): Environment; /** * Returns true if the environment is local. * * @param env - Environment variables. * @returns True if the environment is local. */ export declare function isLocalEnvironment(env?: NodeJS.ProcessEnv): boolean;