Allow the client name to be a symbol (#1254)
This commit is contained in:
committed by
GitHub
parent
9d30778614
commit
1a7727588e
@ -300,6 +300,13 @@ expectType<Client>(
|
||||
})
|
||||
)
|
||||
|
||||
expectType<Client>(
|
||||
new Client({
|
||||
node: 'http://localhost:9200',
|
||||
name: Symbol('foo')
|
||||
})
|
||||
)
|
||||
|
||||
expectError<errors.ConfigurationError>(
|
||||
new Client({
|
||||
node: 'http://localhost:9200',
|
||||
|
||||
Reference in New Issue
Block a user