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

readonlyNonEmptyArray overview

Added in v0.5.7


Table of contents


ReadonlyNonEmptyArray (interface)

Signature

export interface ReadonlyNonEmptyArray<A> extends ReadonlyArray<A> {
  readonly 0: A
}

Added in v0.5.7

ReadonlyNonEmptyArrayC (interface)

Signature

export interface ReadonlyNonEmptyArrayC<C extends t.Mixed>
  extends t.Type<ReadonlyNonEmptyArray<t.TypeOf<C>>, ReadonlyNonEmptyArray<t.OutputOf<C>>, unknown> {}

Added in v0.5.7

readonlyNonEmptyArray

Signature

export function readonlyNonEmptyArray<C extends t.Mixed>(
  codec: C,
  name: string = `ReadonlyNonEmptyArray<${codec.name}>`
): ReadonlyNonEmptyArrayC<C> { ... }

Added in v0.5.7