Skip to main content

internal.MethodAwareDocEndpoints

Home > @backstage/backend-openapi-utils > internal > MethodAwareDocEndpoints

Signature:

export type MethodAwareDocEndpoints<Doc extends EndpointMap, Endpoint extends DocEndpoint<Doc>, Method extends DocEndpointMethod<Doc, Endpoint>> = ValueOf<{
[Template in keyof Doc]: Template extends `#${Method}|${infer E}` ? E extends DocEndpoint<Doc> ? PathTemplate<E> : never : never;
}>;

References: EndpointMap, DocEndpoint, DocEndpointMethod, ValueOf, PathTemplate