# Function discriminant

- discriminant<RawDiscriminant extends string, ParsedDiscriminant extends string>(
  parsedDiscriminant: ParsedDiscriminant,
  rawDiscriminant: RawDiscriminant,
  ): Discriminant<RawDiscriminant, ParsedDiscriminant>

  #### Type Parameters

  - RawDiscriminant extends string
  - ParsedDiscriminant extends string

  #### Parameters

  - parsedDiscriminant: ParsedDiscriminant
  - rawDiscriminant: RawDiscriminant

  #### Returns Discriminant<RawDiscriminant, ParsedDiscriminant>

  - Defined in engine/sdks/typescript/api-full/types/core/schemas/builders/union/discriminant.d.ts:1