Options
All
  • Public
  • Public/Protected
  • All
Menu

Module ApplicationConfiguration

since

2.0.0

Index

Variables

Const SYMBOL

SYMBOL: symbol = BotyoSymbol.forName("ApplicationConfiguration")

Methods

forModule

getOrElse

  • getOrElse<O, T>(property: string, other: O): T | O
  • Returns the configuration indicated by its 'property' if it exists, or a default value passed as 'other'

    since

    2.0.0

    Type parameters

    • O

    • T

    Parameters

    • property: string
    • other: O

      default value to return if property is not defined in configuration

    Returns T | O

getProperty

  • getProperty<T>(property: string): T

getRawObject

  • getRawObject(): object

hasProperty

  • hasProperty(property: string): boolean
  • Returns true if the property is defined in the configuration file, otherwise false

    since

    2.0.0

    Parameters

    • property: string

    Returns boolean

    true if the property is defined in the configuration file, otherwise false

setProperty

  • setProperty<T>(property: string, value: T): void

Generated using TypeDoc