AdonisJS API
    Preparing search index...

    Type Alias InferConnections<T>

    InferConnections: T["connections"]

    Utility type to infer connection types from a configuration object.

    Type Parameters

    const config = {
    connections: {
    main: { host: 'localhost', port: 6379 },
    cache: { host: 'cache', port: 6380 }
    }
    }

    type Connections = InferConnections<typeof config> // { main: {...}, cache: {...} }