Type alias GetTypedDataMessage<TTypedData, TPrimaryType, TSchema, TMessage>

GetTypedDataMessage<TTypedData, TPrimaryType, TSchema, TMessage>: TPrimaryType extends "EIP712Domain"
    ? {}
    : {
            [key_3: string]: any;
        } extends TMessage
        ? {
            message: {
                [key_4: string]: unknown;
            };
        }
        : {
            message: TMessage;
        }

Type Parameters

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

  • TPrimaryType extends string = string

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

  • TMessage = TSchema[TPrimaryType extends keyof TSchema
        ? TPrimaryType
        : keyof TSchema]

Generated using TypeDoc