Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/wj-config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,13 +369,13 @@ export interface IEnvAwareBuilder<TEnvironments extends string, T extends Record
* @param value Value of the property.
* @param hierarchySeparator Optional hierarchy separator. If not specified, colon (:) is assumed.
*/
addSingleValue<TKey extends string, TValue extends ConfigurationValue, TSep extends string = ':'>(path: TKey, value?: ConfigurationValue, hierarchySeparator?: string): IEnvAwareBuilder<TEnvironments, MergeResult<T, InflateKey<TKey, TValue, TSep>>>;
addSingleValue<TKey extends string, TValue extends ConfigurationValue, TSep extends string = ':'>(path: TKey, value?: TValue, hierarchySeparator?: string): IEnvAwareBuilder<TEnvironments, MergeResult<T, InflateKey<TKey, TValue, TSep>>>;
/**
* Adds a single value to the collection of data sources that will be used to build the configuration object.
* @param dataFn Function that returns the [key, value] tuple that needs to be added.
* @param hierarchySeparator Optional hierarchy separator. If not specified, colon (:) is assumed.
*/
addSingleValue<TKey extends string, TValue extends ConfigurationValue, TSep extends string = ':'>(dataFn: () => Promise<[TKey, ConfigurationValue]>, hierarchySeparator?: string): IEnvAwareBuilder<TEnvironments, MergeResult<T, InflateKey<TKey, TValue, TSep>>>;
addSingleValue<TKey extends string, TValue extends ConfigurationValue, TSep extends string = ':'>(dataFn: () => Promise<[TKey, TValue]>, hierarchySeparator?: string): IEnvAwareBuilder<TEnvironments, MergeResult<T, InflateKey<TKey, TValue, TSep>>>;
/**
* Sets the data source name of the last data source added to the builder.
* @param name Name for the data source.
Expand Down