Type alias GetTypedDataDomain<TTypedData, TPrimaryType, TSchema, TDomain>

GetTypedDataDomain<TTypedData, TPrimaryType, TSchema, TDomain>: TPrimaryType extends "EIP712Domain"
    ? {
        domain: TDomain;
    }
    : {
        domain?: TDomain;
    }

Type Parameters

  • TTypedData extends TypedData | {
        [key_1: string]: unknown;
    } = TypedData

  • TPrimaryType extends string = string

  • TSchema = TTypedData extends TypedData
        ? TypedDataToPrimitiveTypes<TTypedData>
        : {
            [key_2: string]: any;
        }

  • TDomain = TSchema extends {
            EIP712Domain: infer Domain;
        }
        ? Domain
        : TypedDataDomain

Generated using TypeDoc