Skip to main content Link Search Menu Expand Document (external link)

PlatformConfigProvider.ts overview

Since v1.0.0


Exports Grouped by Category


constructors

fromDotEnv

Create a dotenv ConfigProvider.

Signature

declare const fromDotEnv: (
  paths: string
) => Effect.Effect<ConfigProvider.ConfigProvider, PlatformError, FileSystem.FileSystem>

Source

Since v1.0.0

fromFileTree

Signature

declare const fromFileTree: (options?: {
  readonly rootDirectory?: string
}) => Effect.Effect<ConfigProvider.ConfigProvider, never, Path.Path | FileSystem.FileSystem>

Source

Since v1.0.0

layers

layerDotEnv

Add the dotenv ConfigProvider to the environment, replacing the current ConfigProvider.

Signature

declare const layerDotEnv: (path: string) => Layer.Layer<never, PlatformError, FileSystem.FileSystem>

Source

Since v1.0.0

layerDotEnvAdd

Add the dotenv ConfigProvider to the environment, as a fallback to the current ConfigProvider. If the file is not found, a debug log is produced and empty layer is returned.

Signature

declare const layerDotEnvAdd: (path: string) => Layer.Layer<never, never, FileSystem.FileSystem>

Source

Since v1.0.0

layerFileTree

Add the file tree ConfigProvider to the environment, replacing the current ConfigProvider.

Signature

declare const layerFileTree: (options?: {
  readonly rootDirectory?: string
}) => Layer.Layer<never, never, Path.Path | FileSystem.FileSystem>

Source

Since v1.0.0

layerFileTreeAdd

Add the file tree ConfigProvider to the environment, as a fallback to the current ConfigProvider.

Signature

declare const layerFileTreeAdd: (options?: {
  readonly rootDirectory?: string
}) => Layer.Layer<never, never, Path.Path | FileSystem.FileSystem>

Source

Since v1.0.0