UNPKG

@broadcom/endevor-bridge-for-git-for-zowe-cli

Version:

Endevor Bridge for Git plug-in for Zowe CLI

26 lines (25 loc) 1.01 kB
import { IEndevorRestResponse } from "@broadcom/endevor-for-zowe-cli/lib/api"; import { IEndevorResponseType } from "../doc/IEndevorResponseType"; import { IEndevorResponse } from "../doc/IEndevorResponse"; export declare class EndevorResponseUtils { /** * Converts the definition of IEndevorRestResponse from 'endevor-for-zowe-cli' into our own definition * * @param response Endevor response */ static convert(response: IEndevorRestResponse<any>): IEndevorResponse; /** * Indicates if the response matches the type specified * * @param response endevor response * @param type type to check */ static is(response: IEndevorResponse, type: IEndevorResponseType): boolean; /** * Throws an error with the details of the Endevor response * * @param response Endevor response * @param extraInfo information to understand where the error happened */ static throwError(response: IEndevorResponse, extraInfo?: string): void; }