From 5e8d03eb0188a60dccc4238a594e41d03a19387b Mon Sep 17 00:00:00 2001 From: Sarah Jiang Date: Tue, 2 Aug 2022 21:42:22 -0700 Subject: [PATCH] Update Function (#1536) --- src/SlackFunction.ts | 8 ++++++++ src/types/events/base-events.ts | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/SlackFunction.ts b/src/SlackFunction.ts index 968d5a450..e9a03ac41 100644 --- a/src/SlackFunction.ts +++ b/src/SlackFunction.ts @@ -24,8 +24,16 @@ export type AllSlackFunctionExecutedMiddlewareArgs = SlackFunctionExecutedMiddle * A Function is a deterministic machine with * specified outputs given specific inputs. * -- +<<<<<<< HEAD * You configure a Function's callback_id, inputs, and outputs * in your project's manifest file (json or js). +======= + * You configure a Function's title, inputs, and outputs + * in your project's manifest file (json or js). If your project contains any + * functions via app.function, it must have a corresponding + * manifest entry or App will throw an error when attempting to + * initialize. +>>>>>>> 1c37f9b (Update Function (#1536)) * -- * Slack will take care of providing inputs to your function * via a function_execution event. Bolt handles delivering those diff --git a/src/types/events/base-events.ts b/src/types/events/base-events.ts index 64b659d2b..83b7b4bd5 100644 --- a/src/types/events/base-events.ts +++ b/src/types/events/base-events.ts @@ -433,9 +433,9 @@ export interface FunctionParams { is_required?: boolean, } -export interface FunctionInputValues { +export type FunctionInputValues = { [key: string]: unknown; -} +}; export type FunctionOutputValues = FunctionInputValues;