ts-odata-client
Version:
OData TypeScript Client
15 lines (14 loc) • 607 B
TypeScript
import type { ODataQuery } from "./ODataQuery";
import type { ExcludeProperties } from "./ExcludeProperties";
/**
* Base ODataContext class; expected to implement specific versions of OData.
*/
export declare abstract class ODataContext {
protected basePath: string;
constructor(basePath: string);
/**
* Creates an @type {ODataQuery} instance used to query the provided endpoint.
* @param endpoint The path, relative to the basePath provided to the contructor.
*/
protected abstract createQuery<T, U = ExcludeProperties<T, unknown[]>>(endpoint: string): ODataQuery<T, U>;
}