@altostra/core
Version:
Core library for shared types and logic
15 lines (14 loc) • 786 B
TypeScript
import type { ApiEndpointType, ApiProxyEndpointType, ApiType } from "../../../../Resources/WebApi/Api";
import type { BlueprintHelper } from "../../../BlueprintHelper";
import type { ResourceHelper } from "../../../ResourceHelper";
import type { WebApiEndpointUtilsBase } from "../common";
export declare function getApiProxyEndpointUtils(blueprint: BlueprintHelper, apiProxyEndpoint: ResourceHelper<ApiProxyEndpointType>): ApiProxyEndpointUtils;
export interface ApiProxyEndpointUtils extends WebApiEndpointUtilsBase<ApiType> {
/**
* Converts the proxy-endpoint to a normal endpoint
*
* This renders the current `ResourceHelper` unusable, and returns a new `ResourceHelper`
* for the endpoint
*/
convertToEndpoint(): ResourceHelper<ApiEndpointType>;
}