Skip to content

Commit

Permalink
fix types in drafts
Browse files Browse the repository at this point in the history
  • Loading branch information
mrashed-dev committed Jan 30, 2024
1 parent 86959a6 commit a4a0eee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/resources/drafts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<NylasResponse<Draft>> {
}: SendDraftParams & Overrides): Promise<NylasResponse<Message>> {
return super._create({
path: `/v3/grants/${identifier}/drafts/${draftId}`,
requestBody: {},
Expand Down

0 comments on commit a4a0eee

Please sign in to comment.