import { Response } from "@mittwald/api-client-commons"; /** * Helper type to assert that a response has a specific status code. * * Usage: * * // ResponseType is a union of all possible responses * type AppListResponseType = Awaited< * ReturnType * >; * * type AppListSuccessfulResponse = SuccessfulResponse< * AppListResponseType, * 200 * >; */ export type SuccessfulResponse = T & { status: S; };