Documentation
    Preparing search index...

    Class ObjectConfigSource

    Configuration source that wraps a structured JavaScript object or parsed JSON data.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Construct a new ObjectConfigSource.

      Parameters

      • data: Record<string, unknown>

        Object containing configuration data.

      • name: string = 'object'

        Source identifier (defaults to 'object').

      • priority: number = 10

        Priority level (defaults to 10).

      Returns ObjectConfigSource

    Properties

    _data: Record<string, unknown>
    name: string

    Human-readable identifier for this configuration source.

    priority: number

    Numeric priority level used for resolution ordering. Higher priority sources override lower priority ones.

    Methods

    • Retrieve value by key or dot-notation path.

      Parameters

      • key: string

        Property key or dot-notation path.

      Returns unknown

      Value if present, or undefined.

    • Returns all data from this object source.

      Returns Record<string, unknown>

    • Checks if a key or path exists.

      Parameters

      • key: string

        Property key or dot-notation path.

      Returns boolean

      True if key exists.