mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-03 08:40:12 +00:00
Add test for accessing property
This commit is contained in:
@@ -37,6 +37,14 @@ client.search({
|
||||
}, (error) => {
|
||||
});
|
||||
|
||||
client.search({
|
||||
q: 'pants'
|
||||
}).then((body) => {
|
||||
const hit = body.hits.hits[0];
|
||||
const names = hit && hit.matched_queries;
|
||||
}, (error) => {
|
||||
});
|
||||
|
||||
client.indices.delete({
|
||||
index: 'test_index',
|
||||
ignore: [404]
|
||||
|
||||
Reference in New Issue
Block a user