From a4a0eeea4753788982fd48f41601e3218b55bc77 Mon Sep 17 00:00:00 2001 From: Mostafa Rashed <17770919+mrashed-dev@users.noreply.github.com> Date: Tue, 30 Jan 2024 23:50:53 +0400 Subject: [PATCH] fix types in drafts --- src/resources/drafts.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/resources/drafts.ts b/src/resources/drafts.ts index 75022a97..e98aa7ed 100644 --- a/src/resources/drafts.ts +++ b/src/resources/drafts.ts @@ -12,6 +12,7 @@ import { NylasResponse, } from '../models/response.js'; import { Messages } from './messages.js'; +import { Message } from '../models/messages'; /** * The parameters for the {@link Drafts.list} method @@ -160,13 +161,13 @@ export class Drafts extends Resource { /** * Send a Draft - * @return The sent draft + * @return The sent message */ public send({ identifier, draftId, overrides, - }: SendDraftParams & Overrides): Promise> { + }: SendDraftParams & Overrides): Promise> { return super._create({ path: `/v3/grants/${identifier}/drafts/${draftId}`, requestBody: {},