UNPKG

@tmlmobilidade/types

Version:

This package provides shared Zod validation schemas and their corresponding TypeScript types for use across projects. All types are automatically inferred from the schemas to ensure full type safety and reduce maintenance overhead.

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;