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

optionFromNullable overview

Added in v0.5.0


Table of contents


OptionFromNullableC (interface)

Signature

export interface OptionFromNullableC<C extends t.Mixed>
  extends t.Type<O.Option<t.TypeOf<C>>, t.OutputOf<C> | null, unknown> {}

Added in v0.5.0

optionFromNullable

Signature

export function optionFromNullable<C extends t.Mixed>(
  codec: C,
  name: string = `Option<${codec.name}>`
): OptionFromNullableC<C> { ... }

Added in v0.5.0