Type used to indicate the application is running in a development environment.
Type used to indicate the application is running in a production environment.
An array containing all the supported EnvironmentType values. Anything not in this array is either deprecated,
or an invalid EnvironmentType.
Type used to indicate the application is running in a testing environment. This should largely be set by the
testing framework.
Variable used to hold the type information for the EnvironmentType class, which is used to build the
EnvironmentType's representation when converted to a string.
The code for the CustomType. Required.
The text readable value for the CustomType. Required.
The CustomType defined as a string value. Required.
Method that returns the type as a string for a CustomType.
The class' type as a string.
Helper method that gets the EnvironmentType from the node process.
An EnvironmentType associated with the current application runtime environment.
Checks if two CustomTypes are equal to each other or not.
The first CustomType to check with.
The second CustomType to check with.
True if the CustomTypes are equal, otherwise false.
Strictly checks if two CustomTypes are equal to each other or not.
The first CustomType to check with.
The second CustomType to check with.
True if the CustomTypes are strict equal, otherwise false.
Converts the CustomType class to a string.
The CustomType's class converted to a string.
Validates that a supplied EnvironmentType is valid.
The EnvironmentType to validate.
True if the provided EnvironmentType is valid, otherwise false.
Getter method for the CustomType's code value.
Getter method for the CustomType's text value.
Getter method for the CustomType's type value.
Indicates if the EnvironmentType is DEVELOPMENT.
True if the EnvironmentType is development, otherwise false.
Checks if a CustomType is equal to a provided CustomType.
The CustomType to compare.
True if the provided CustomType is equal to the current CustomType, otherwise false.
Indicates if the EnvironmentType is PRODUCTION.
True if the EnvironmentType is production, otherwise false.
Strictly checks if a CustomType is equal to a provided CustomType.
The CustomType to compare.
True if the provided CustomType is strict equal to the current CustomType, otherwise false.
Indicates if the EnvironmentType is TEST.
True if the EnvironmentType is test, otherwise false.
Validation method for the CustomType class. Ensures that a CustomType is built correctly.
An array with a true/false value indicating if the CustomType is valid
or not, and either an empty string when valid, or a string containing the error message when invalid.
Converts the CustomType to a string.
The CustomType converted to a string value.
Creates an instance of the Environment type.
The code for the EnvironmentType.
The readable value of the EnvironmentType.
Generated using TypeDoc
A class used to indicate what type of environment the node process is currently running in.