UNPKG

@tmlmobilidade/types

Version:
15 lines (14 loc) 648 B
/** * Allowed app Environment values. * This type is used to define the environments in which the application can run. * It is used to differentiate between development, production, and staging environments. * It has a companion function `getCurrentEnvironment` that retrieves the current environment * based on the set environment variable. */ export type Environment = 'development' | 'production' | 'staging'; /** * Get the current environment from server-side `ENVIRONMENT` * or client-side `NEXT_PUBLIC_ENVIRONMET` variables. * @returns The current environment value. */ export declare function getCurrentEnvironment(): Environment;