Package: effect
Module: Config
Schema for array types that can also be parsed from a flat separated string.
When to use
Use when reading array values from a single env var, such as comma-separated exporter names.
Details
Accepts either a JSON-like array from the provider or a flat string like
"a,b,c". The separator defaults to "," and can be customized.
Signature
declare const Array: <V extends Schema.Constraint>(value: V, options?: { readonly separator?: string | undefined; }) => Schema.Union<readonly [Schema.compose<Schema.$Array<V>, Schema.decodeTo<Schema.$Array<Schema.String>, Schema.String, never, never>>, Schema.$Array<V>]>
Since v4.0.0