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

nonEmptyArray overview

Added in v0.5.0


Table of contents


NonEmptyArrayC (interface)

Signature

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

Added in v0.5.0

nonEmptyArray

Signature

export function nonEmptyArray<C extends t.Mixed>(
  codec: C,
  name: string = `NonEmptyArray<${codec.name}>`
): NonEmptyArrayC<C> { ... }

Added in v0.5.0