aboutsummaryrefslogtreecommitdiffstats
path: root/typings/slack_api/slack_common.pyi
diff options
context:
space:
mode:
Diffstat (limited to 'typings/slack_api/slack_common.pyi')
-rw-r--r--typings/slack_api/slack_common.pyi5
1 files changed, 5 insertions, 0 deletions
diff --git a/typings/slack_api/slack_common.pyi b/typings/slack_api/slack_common.pyi
index 33a4f76..dc7754a 100644
--- a/typings/slack_api/slack_common.pyi
+++ b/typings/slack_api/slack_common.pyi
@@ -1,10 +1,15 @@
from typing_extensions import Literal, TypedDict, final
+class SlackSuccessResponse(TypedDict):
+ ok: Literal[True]
+
@final
class SlackErrorResponse(TypedDict):
ok: Literal[False]
error: str
+SlackGenericResponse = SlackSuccessResponse | SlackErrorResponse
+
@final
class SlackResponseMetadata(TypedDict):
next_cursor: str