Kfg Documentation
    Preparing search index...

    Class Kfg<D, S>

    Type Parameters

    Index

    Constructors

    Properties

    "~cache": Record<string, any> = {}
    "~driver": D
    "~loaded": boolean = false
    "~schema": { compiled: TObject; defined: S }
    config: StaticSchema<S>

    Proxy to access configuration properties directly. Example: kfg.config.database.port

    Accessors

    Methods

    • Type Parameters

      • P extends string

      Parameters

      • ...paths: P[]

      Returns boolean

    • Loads the configuration from the driver.

      Parameters

      • Optionaloptions: Partial<D["config"]> & { only_importants?: boolean }

      Returns inPromise<D["async"], void>

    • Parameters

      • Optionaloptions: Partial<D["config"]> & { only_importants?: boolean }

      Returns inPromise<D["async"], void>