@knora/core
Version:
Knora ui module: core
37 lines (36 loc) • 732 B
TypeScript
/**
* @deprecated Use ApiResponseData from `@knora/api` (github:dasch-swiss/knora-api-js-lib) instead
* Result class used as API url response in ApiService
*/
export declare class ApiServiceResult {
private static jsonConvert;
/**
* Header contains the Knora / Server version
*/
header?: any;
/**
* Status number
*/
status: number;
/**
* Status text
*/
statusText: string;
/**
* API url
*/
url: string;
/**
* Body as JSON
*/
body: any;
/**
* Gets the result body as instance of classObject.
* @param classObject
* @returns {any}
* @throws
*/
getBody(classObject?: {
new (): any;
}): any;
}