Home > @skunkteam/types > PossibleDiscriminator
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