fix: remove custom typings and depend on api results instead

This commit is contained in:
@zimeg
2024-10-31 19:38:51 -07:00
parent 0dd9fb1d42
commit 53b44cac03
-15
View File
@@ -11,21 +11,6 @@ import SlackError from "./errors.js";
* @see {@link https://api.slack.com/methods/}
*/
export default class Client {
/**
* Known response values from messages that are included in outputs.
* @typedef MessageResultDetails
* @prop {string} [thread_ts] - timestamp of the top threaded message.
*/
/**
* Possible response values related to messages from the API.
* @typedef MessageResult - Possible message values from API methods.
* @prop {MessageResultDetails} [message] - additional message details.
* @prop {string} [ts] - timestamp of the message.
* @prop {string} [channel] - ID of the channel.
* @see {@link https://api.slack.com/methods/chat.postMessage#examples}
*/
/**
* Perform the API call configured with the input payload.
* @param {Config} config