Package: effect
Module: Array
Constructs an array type preserving non-emptiness.
Example (Preserving non-emptiness)
import type { Array } from "effect"
type Result = Array.ReadonlyArray.With<readonly [number], string>
// Result is NonEmptyArray<string>
Signature
type With<S, A> = S extends NonEmptyReadonlyArray<any> ? NonEmptyArray<A>
: Array<A>
Since v2.0.0