Skip to main content

internal.MethodAwareDocPath

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

Signature:

export type MethodAwareDocPath<Doc extends PathDoc, Path extends DocPathTemplate<Doc>, Method extends DocPathTemplateMethod<Doc, Path>> = ValueOf<{
[Template in DocPath<Doc>]: Path extends PathTemplate<Template> ? Method extends DocPathTemplateMethod<Doc, Path> ? PathTemplate<Template> : never : never;
}>;

References: PathDoc, DocPathTemplate, DocPathTemplateMethod, ValueOf, DocPath, PathTemplate