UNPKG

@altostra/core

Version:

Core library for shared types and logic

16 lines (15 loc) 770 B
import { type HttpUrl } from "../../../../common/CustomTypes/HttpUrl"; import { type ApiEndpointBase } from "./common"; import type { EndpointLabel } from "./EndpointLabel"; export declare type ApiEndpointType = 'resource.api.endpoint'; export interface ApiEndpoint extends ApiEndpointBase { type: ApiEndpointType; label?: EndpointLabel; } export declare const isApiEndpoint: import("@altostra/type-validations").ObjectOfTypeValidation<ApiEndpoint>; export declare type ApiProxyEndpointType = 'resource.api.proxy-endpoint'; export interface ApiProxyEndpoint extends ApiEndpointBase { type: ApiProxyEndpointType; targetUrl: HttpUrl; } export declare const isApiProxyEndpoint: import("@altostra/type-validations").ObjectOfTypeValidation<ApiProxyEndpoint>;