Skip to main content

EnvOptions<T, R, D>

Type Parameters

Type Parameter

T extends EnvTypes

R extends boolean | undefined

D extends EnvInferType<T> | undefined

Properties

PropertyTypeDescription

type

T

The expected type of the environment variable.

default?

D

Default value if the environment variable is not provided.

required?

R

Whether the environment variable is required.

resolver?

(value) => EnvInferType<T>

Custom resolver to convert the environment variable to the expected type.