Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UnionCodecPreBuilder<T>

Type parameters

  • T

Hierarchy

  • UnionCodecPreBuilder

Index

Constructors

Methods

Constructors

constructor

Methods

discriminateOn

  • discriminateOn<D, B>(discriminator: D, baseCodec?: Codec<B>): UnionCodecBuilder<T, D, B, never>
  • Type parameters

    • D: string | number | symbol

    • B = {}

    Parameters

    • discriminator: D
    • Optional baseCodec: Codec<B>

    Returns UnionCodecBuilder<T, D, B, never>

Generated using TypeDoc