import { OpenboxEndpoints } from "https://deno.land/x/openbox@1.2.10/mod.ts";
Constructors
new
OpenboxEndpoints(schemaRegistry: OpenboxSchemaRegistry, endpointByPathByMethodMap?: Map<PathKey, Map<OpenboxRouteMethod, OpenboxEndpoint>>)Methods
endpoint<P extends string, C extends OpenboxRouteConfig<P>>(config: C): OpenboxEndpoints<R & [p in C["path"]]: [m in C["method"]]: OpenboxEndpointTypeBag<Simplify<ExtractRequestParamsType<C>>, Simplify<ExtractRequestQueryType<C>>, Simplify<ExtractRequestHeadersType<C>>, ExtractRequestBodyByMediaMapType<C>, TypedResponseUnion<C>, ResponseByStatusMap<C>>>
get(path: PathKey, method: OpenboxRouteMethod): OpenboxEndpoint | undefined
jsonEndpoint<P extends string, J extends OpenboxJsonRouteConfig<P>>(jsonConfig: J)
merge<E>(other: OpenboxEndpoints<E>): OpenboxEndpoints<R & E>