effect-io-ai

Package: effect
Module: ConfigProvider

ConfigProvider.Path

An ordered sequence of string or numeric segments that addresses a node in the configuration tree. String segments name object keys; numeric segments index into arrays.

When to use

Use to address raw configuration nodes when implementing or transforming a ConfigProvider.

Example (A typical config path)

import type { ConfigProvider } from "effect"

const path: ConfigProvider.Path = ["database", "replicas", 0, "host"]

Signature

type Path = ReadonlyArray<string | number>

Source

Since v4.0.0