From fa54b9de5522b9fa9d5367650950f8b0e44f6e14 Mon Sep 17 00:00:00 2001 From: GC <30398469+gc@users.noreply.github.com> Date: Thu, 18 Nov 2021 03:38:43 +1100 Subject: [PATCH] fix: correct types for REST attachments (#238) --- deno/rest/v8/channel.ts | 2 +- deno/rest/v8/webhook.ts | 2 +- deno/rest/v9/channel.ts | 2 +- deno/rest/v9/webhook.ts | 2 +- rest/v8/channel.ts | 2 +- rest/v8/webhook.ts | 2 +- rest/v9/channel.ts | 2 +- rest/v9/webhook.ts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deno/rest/v8/channel.ts b/deno/rest/v8/channel.ts index b8272ca3..80c6a092 100644 --- a/deno/rest/v8/channel.ts +++ b/deno/rest/v8/channel.ts @@ -217,7 +217,7 @@ export interface RESTPostAPIChannelMessageJSONBody { /** * Attachment objects with filename and description */ - attachments?: Pick & Partial>[]; + attachments?: (Pick & Partial>)[]; } /** diff --git a/deno/rest/v8/webhook.ts b/deno/rest/v8/webhook.ts index c385635a..61016d50 100644 --- a/deno/rest/v8/webhook.ts +++ b/deno/rest/v8/webhook.ts @@ -138,7 +138,7 @@ export interface RESTPostAPIWebhookWithTokenJSONBody { /** * Attachment objects with filename and description */ - attachments?: Pick & Partial>[]; + attachments?: (Pick & Partial>)[]; } /** diff --git a/deno/rest/v9/channel.ts b/deno/rest/v9/channel.ts index aa57a5d3..a88bbdd6 100644 --- a/deno/rest/v9/channel.ts +++ b/deno/rest/v9/channel.ts @@ -251,7 +251,7 @@ export interface RESTPostAPIChannelMessageJSONBody { /** * Attachment objects with filename and description */ - attachments?: Pick & Partial>[]; + attachments?: (Pick & Partial>)[]; } /** diff --git a/deno/rest/v9/webhook.ts b/deno/rest/v9/webhook.ts index 2f508e96..0b73eb9f 100644 --- a/deno/rest/v9/webhook.ts +++ b/deno/rest/v9/webhook.ts @@ -138,7 +138,7 @@ export interface RESTPostAPIWebhookWithTokenJSONBody { /** * Attachment objects with filename and description */ - attachments?: Pick & Partial>[]; + attachments?: (Pick & Partial>)[]; } /** diff --git a/rest/v8/channel.ts b/rest/v8/channel.ts index 69f769a2..1eba17a7 100644 --- a/rest/v8/channel.ts +++ b/rest/v8/channel.ts @@ -217,7 +217,7 @@ export interface RESTPostAPIChannelMessageJSONBody { /** * Attachment objects with filename and description */ - attachments?: Pick & Partial>[]; + attachments?: (Pick & Partial>)[]; } /** diff --git a/rest/v8/webhook.ts b/rest/v8/webhook.ts index 4748ce56..5169f6e3 100644 --- a/rest/v8/webhook.ts +++ b/rest/v8/webhook.ts @@ -138,7 +138,7 @@ export interface RESTPostAPIWebhookWithTokenJSONBody { /** * Attachment objects with filename and description */ - attachments?: Pick & Partial>[]; + attachments?: (Pick & Partial>)[]; } /** diff --git a/rest/v9/channel.ts b/rest/v9/channel.ts index 12889d25..744d172f 100644 --- a/rest/v9/channel.ts +++ b/rest/v9/channel.ts @@ -251,7 +251,7 @@ export interface RESTPostAPIChannelMessageJSONBody { /** * Attachment objects with filename and description */ - attachments?: Pick & Partial>[]; + attachments?: (Pick & Partial>)[]; } /** diff --git a/rest/v9/webhook.ts b/rest/v9/webhook.ts index 6befc6bf..e63c48db 100644 --- a/rest/v9/webhook.ts +++ b/rest/v9/webhook.ts @@ -138,7 +138,7 @@ export interface RESTPostAPIWebhookWithTokenJSONBody { /** * Attachment objects with filename and description */ - attachments?: Pick & Partial>[]; + attachments?: (Pick & Partial>)[]; } /**