aboutsummaryrefslogtreecommitdiffstats
path: root/typings/slack_api/slack_common.pyi
blob: dc7754a53b5b772e5be49c72f2e7819752e65ff6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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