KeysWithMethods<Methods>: {
    [K in keyof Routes]: Methods extends (keyof Routes[K])[]
        ? K
        : never
}[keyof Routes]

Type Parameters