UNPKG

@altostra/core

Version:

Core library for shared types and logic

12 lines (11 loc) 523 B
import { type RootedPath } from "../../../../common/CustomTypes/RootedPath"; import type { ObjectValidations } from '@altostra/type-validations'; import { type HttpMethod, type ResourceId } from "../../../Common"; import { type Ref, type ResourceBase } from "../../Common"; export interface ApiEndpointBase extends ResourceBase { method: HttpMethod; path: RootedPath; api: Ref; authorizer?: ResourceId | null; } export declare const apiEndpointValidations: ObjectValidations<Omit<ApiEndpointBase, 'type'>>;