// Licensed to Elasticsearch B.V under one or more agreements. // Elasticsearch B.V licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information import { expectType } from 'tsd' import { URL } from 'url' import { Connection } from '../../' const conn = new Connection({ url: new URL('http://localhost:9200'), ssl: { ca: 'string' }, id: 'id', headers: {}, agent: { keepAlive: false }, status: 'alive', roles: { master: true }, auth: { username: 'username', password: 'password' } }) expectType(conn) expectType(conn.url) expectType(conn.id) expectType>(conn.headers) expectType(conn.deadCount) expectType(conn.resurrectTimeout) expectType(conn.status)