@barchart/common-js
Version:
Library of common JavaScript utilities
27 lines (26 loc) • 625 B
TypeScript
/**
* Invokes web service calls using an {@link Endpoint} definition.
*
* @public
*/
export default class Gateway {
/**
* Invokes a web service endpoint, given the payload supplied.
*
* @public
* @static
* @async
* @param {Endpoint} endpoint
* @param {*=} payload
* @returns {Promise<object>}
*/
public static invoke(endpoint: Endpoint, payload?: any | undefined): Promise<object>;
/**
* Returns a string representation.
*
* @public
* @returns {string}
*/
public toString(): string;
}
import Endpoint from './definitions/Endpoint.js';