@hashgraph/solo
    Preparing search index...

    Fluent builder for creating a Config instance.

    interface ConfigBuilder {
        build(): Config;
        withConverter<R extends object>(
            cls: ClassConstructor<R>,
            priority: number,
            converter: Converter<R>,
        ): ConfigBuilder;
        withDefaultConverters(): ConfigBuilder;
        withDefaultSources(): ConfigBuilder;
        withMergeSourceValues(mergeSourceValues: boolean): ConfigBuilder;
        withSources(...sources: ConfigSource[]): ConfigBuilder;
    }

    Implemented by

    Index

    Methods

    • Sets whether to merge source values. If true, the values from an objects properties if defined will be used to merge into a final instance. If false, the values from the source with the highest ordinal will be used if the object from that source is defined, even it is properties are not defined.

      Parameters

      • mergeSourceValues: boolean

        Whether to merge source values.

      Returns ConfigBuilder