UNPKG

nest-simple-config

Version:

A powerful and flexible configuration management library for NestJS applications. Supports JSON, YAML file loading, environment variable overrides, immutable configurations, and type-safe configuration access with dependency injection.

11 lines (10 loc) 441 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InjectConfig = void 0; const common_1 = require("@nestjs/common"); const bind_option_token_1 = require("../utils/bind-option-token"); // eslint-disable-next-line @typescript-eslint/ban-types function InjectConfig(optionType) { return (0, common_1.Inject)((0, bind_option_token_1.getBindOptionToken)(optionType)); } exports.InjectConfig = InjectConfig;