Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 729 Bytes

types.possiblediscriminator.md

File metadata and controls

22 lines (16 loc) · 729 Bytes

Home > @skunkteam/types > PossibleDiscriminator

PossibleDiscriminator type

A description of the property-paths and possible values that might be used to identify this type inside a union.

Signature:

type PossibleDiscriminator = {
    readonly path: readonly string[];
    readonly values: readonly LiteralValue[];
    readonly mapping?: ReadonlyArray<{
        type: BaseTypeImpl<unknown>;
        values: readonly LiteralValue[];
    }>;
};

References: LiteralValue, BaseTypeImpl