openapi-fastify
    Preparing search index...

    Type Alias ComponentFromRef<Document, Ref>

    ComponentFromRef: Ref extends `#/components/${infer Section}/${infer Name}`
        ? Document extends { components: Record<string, any> }
            ? Section extends keyof Document["components"]
                ? Name extends keyof Document["components"][Section]
                    ? Document["components"][Section][Name]
                    : never
                : never
            : never
        : never

    Type Parameters

    • Document
    • Ref extends string