Files
mattermost-mobile/types/api/client.d.ts
2022-05-13 11:36:30 -04:00

24 lines
743 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
type logLevel = 'ERROR' | 'WARNING' | 'INFO';
type ClientOptions = {
body?: any;
method?: string;
noRetry?: boolean;
timeoutInterval?: number;
};
interface ClientErrorProps extends Error {
details: Error;
intl?:
{defaultMessage?: string; id: string; values?: Record<string, any>} |
{ defaultMessage?: string; id: string; values?: Record<string, any> } |
{ id: string; defaultMessage?: string; values?: Record<string, any> } |
{ id: string; defaultMessage?: string; values?: Record<string, any> };
url: string;
server_error_id?: string;
status_code?: number;
}