Skip to content

configBound

Main ConfigBound class and configuration builder functions

Classes

ClassDescription
ConfigBoundA ConfigBound is the top level object that contains all the Sections and Binds. It is used to retrieve the values of the Elements from its binds.
ConfigFileIsDirectoryExceptionAn error that occurs when a config path is a directory instead of a file.
ConfigFileNotFoundExceptionAn error that occurs when a config file cannot be found.
ConfigFileParseExceptionAn error that occurs when a config file cannot be parsed or loaded.
ConfigLoaderExceptionBase exception class for configuration loading errors.
ExportNotFoundExceptionAn error that occurs when a named export cannot be found in a config file.
InvalidConfigBoundInstanceExceptionAn error that occurs when a config instance is not valid.
MissingDependencyExceptionAn error that occurs when a dependency required by a config file is missing.
MultipleConfigBoundInstancesExceptionAn error that occurs when multiple ConfigBound instances are found and none is specified.
NoConfigBoundInstancesExceptionAn error that occurs when no ConfigBound instances are found in a config file.
TypedConfigBound-

Type Aliases

Type AliasDescription
ConfigItemBase schema type for individual config items
ConfigSchema-
ConfigSectionSchema for nested sections
InferConfigType-

Functions

FunctionDescription
configEnumHelper for creating type-safe enum/union config items. Automatically handles the Zod type for string enums.
configItemCreates a type-safe configuration item. This helper provides better type inference and makes the schema more readable.
configSectionCreates a configuration section with multiple related items. Sections help organize configuration into logical groups.

References

EnvVarBind

Re-exports EnvVarBind


FileBind

Re-exports FileBind


FileBindOptions

Re-exports FileBindOptions


FileFormat

Re-exports FileFormat


StaticBind

Re-exports StaticBind


StaticBindValues

Re-exports StaticBindValues