Documentation
    Preparing search index...

    Type Alias GetRoutesForMethod<Routes, Method>

    GetRoutesForMethod: {
        [K in keyof Routes]: Method extends K ? Routes[Method] : never
    }[keyof Routes]

    Utility type to extract routes for a specific HTTP method from the routes collection

    Type Parameters

    • Routes
    • Method