Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConfigValue<T>

Type parameters

  • T

Hierarchy

  • ConfigValue

Index

Constructors

constructor

  • new ConfigValue<T>(sectionName: string, optionName: string, val: undefined | string, converter: (x: string) => T): ConfigValue<T>
  • Type parameters

    • T

    Parameters

    • sectionName: string
    • optionName: string
    • val: undefined | string
    • converter: (x: string) => T
        • (x: string): T
        • Parameters

          • x: string

          Returns T

    Returns ConfigValue<T>

Methods

isDefined

  • isDefined(): boolean
  • Returns boolean

orDefault

  • orDefault(v: T): undefined | T
  • Parameters

    • v: T

    Returns undefined | T

orUndefined

  • orUndefined(): undefined | T
  • Returns undefined | T

required

  • required(): T
  • Returns T

Generated using TypeDoc