mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
fix: correct import
This commit is contained in:
parent
a77cf124c2
commit
0d005626d5
@ -9,8 +9,8 @@ import {
|
||||
Response,
|
||||
IndexSettings,
|
||||
QueryParameters,
|
||||
Client
|
||||
} from 'algoliasearch';
|
||||
import { Client } from './lite';
|
||||
|
||||
let _algoliaResponse: Response = {
|
||||
hits: [{}, {}],
|
||||
@ -149,7 +149,7 @@ let _algoliaQueryParameters: QueryParameters = {
|
||||
};
|
||||
|
||||
let client: Client = algoliasearch('', '');
|
||||
let index: Index = algoliasearch('', '').initIndex('');
|
||||
let index: Index = client.initIndex('');
|
||||
|
||||
let search = index.search({ query: '' });
|
||||
|
||||
@ -170,8 +170,8 @@ index.partialUpdateObjects([{}], false).then(() => {});
|
||||
let indexName : string = index.indexName;
|
||||
|
||||
// complete copy
|
||||
algoliasearch('','').copyIndex('from', 'to').then(()=>{})
|
||||
algoliasearch('','').copyIndex('from', 'to', ()=> {})
|
||||
client.copyIndex('from', 'to').then(()=>{})
|
||||
client.copyIndex('from', 'to', ()=> {})
|
||||
// with scope
|
||||
algoliasearch('','').copyIndex('from', 'to', ['settings']).then(()=>{})
|
||||
algoliasearch('','').copyIndex('from', 'to', ['synonyms', 'rules'], ()=> {})
|
||||
client.copyIndex('from', 'to', ['settings']).then(()=>{})
|
||||
client.copyIndex('from', 'to', ['synonyms', 'rules'], ()=> {})
|
||||
|
||||
1
types/algoliasearch/lite/index.d.ts
vendored
1
types/algoliasearch/lite/index.d.ts
vendored
@ -67,6 +67,7 @@ declare namespace algoliasearch {
|
||||
* Interface for the index algolia object
|
||||
*/
|
||||
interface Index {
|
||||
indexName: string;
|
||||
/**
|
||||
* Gets a specific object
|
||||
* https://github.com/algolia/algoliasearch-client-js#find-by-ids---getobjects
|
||||
|
||||
Loading…
Reference in New Issue
Block a user