Expose the new type definition along with the current one (#1440)
This commit is contained in:
committed by
GitHub
parent
052e138fbd
commit
7fdfa4834f
@ -22,6 +22,7 @@ import { Client, RequestEvent, ResurrectEvent, ApiError, ApiResponse, estypes }
|
||||
import { KibanaClient } from '../../api/kibana'
|
||||
import { TransportRequestPromise, Context } from '../../lib/Transport'
|
||||
|
||||
// @ts-expect-error
|
||||
const client: KibanaClient = new Client({
|
||||
node: 'http://localhost:9200'
|
||||
})
|
||||
@ -112,4 +113,4 @@ expectError(client.close(() => {}))
|
||||
// the child api should return a KibanaClient instance
|
||||
const child = client.child()
|
||||
expectType<KibanaClient>(child)
|
||||
expectNotType<Client>(child)
|
||||
expectNotType<Client>(child)
|
||||
Reference in New Issue
Block a user