Revert "Removing types"

This reverts commit 1ec5ed8de2.
pull/5501/head
Leo Giovanetti 2022-11-16 13:38:30 -03:00
parent 8cd48245a4
commit e9601b16be
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,6 @@
import client from "@sendgrid/client";
import { ClientRequest } from "@sendgrid/client/src/request";
import { ClientResponse } from "@sendgrid/client/src/response";
import logger from "@calcom/lib/logger";
@ -63,7 +65,7 @@ export default class Sendgrid {
return username;
};
public async sendgridRequest<R>(data: any): Promise<R> {
public async sendgridRequest<R = ClientResponse>(data: ClientRequest): Promise<R> {
this.log.debug("sendgridRequest:request", data);
const results = await client.request(data);
this.log.debug("sendgridRequest:results", results);