Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OptionResolver

A helper class to parameters from "options" configuration section.

Example

let config = ConfigParams.fromTuples(
    ...
    "options.param1", "ABC",
    "options.param2", 123
);

let options = OptionsResolver.resolve(config); // Result: param1=ABC;param2=123

Hierarchy

  • OptionResolver

Index

Methods

Methods

Static resolve

  • Resolves an "options" configuration section from component configuration parameters.

    Parameters

    • config: ConfigParams

      configuration parameters

    • Default value configAsDefault: boolean = false

      (optional) When set true the method returns the entire parameter set when "options" section is not found. Default: false

    Returns ConfigParams

    configuration parameters from "options" section

Generated using TypeDoc