cbcore-ts
Version:
CBCore is a library to build web applications using pure Typescript.
11 lines (10 loc) • 629 B
TypeScript
import { UIObject } from "../../uicore-ts";
import { CBCore } from "./CBCore";
export declare class CBServerClient extends UIObject {
_core: CBCore;
constructor(core: CBCore);
sendJSONObject(URL: string, objectToSend: any, completion: (response: any) => void): void;
retrieveJSONObject(URL: string, completion: (response: any) => void): void;
retrieveJSONObjectWithCaching(URL: string, cacheObject: any, cacheKey: string, forceUpdate: boolean, completion: (response: any) => void): void;
sendRequest(method: string, URL: string, data: any, completion: (status: number, response: string) => void): void;
}