MessagePart:
    | MessageBiDiIsolationPart
    | MessageFallbackPart
    | MessageMarkupPart
    | MessageNumberPart
    | MessageStringPart
    | MessageTextPart
    | MessageUnknownPart
    | MessageExpressionPart<
        Exclude<
            P,
            (
                | MessageBiDiIsolationPart
                | MessageFallbackPart
                | MessageMarkupPart
                | MessageNumberPart
                | MessageStringPart
                | MessageTextPart
                | MessageUnknownPart
            )["type"],
        >,
    >

The values returned by MessageFormat.formatToParts.

Type Parameters

  • P extends string