11<p align =" center " >
2- <img src =" https://res.cloudinary.com/ meilisearch/image/upload /v1587402338/SDKs/meilisearch_js.svg " alt =" MeiliSearch-JavaScript " width =" 200 " height =" 200 " />
2+ <img src =" https://images. meilisearch.workers.dev /v1587402338/SDKs/meilisearch_js.svg " alt =" MeiliSearch-JavaScript " width =" 200 " height =" 200 " />
33</p >
44
55<h1 align =" center " >MeiliSearch JavaScript</h1 >
@@ -118,6 +118,20 @@ const client = new MeiliSearch({
118118
119119To make this package work with React Native, please add the [ react-native-url-polyfill] ( https://www.npmjs.com/package/react-native-url-polyfill ) .
120120
121+ #### Deno<!-- omit in toc -->
122+
123+ Usage in a back-end deno environment
124+
125+ ``` ts
126+ import { MeiliSearch } from " https://esm.sh/meilisearch"
127+
128+ const client = new MeiliSearch ({
129+ host: ' http://127.0.0.1:7700' ,
130+ apiKey: ' masterKey' ,
131+ })
132+ ```
133+
134+
121135## 🎬 Getting Started
122136
123137#### Add Documents <!-- omit in toc -->
@@ -328,7 +342,7 @@ If you want to know more about the development workflow or want to contribute, p
328342
329343- Get an index:
330344
331- ` client.getIndex<T>(uid: string): Index<T> `
345+ ` client.getIndex<T>(uid: string): Promise< Index<T> > `
332346
333347- Get or create index if it does not exist
334348
@@ -340,7 +354,7 @@ If you want to know more about the development workflow or want to contribute, p
340354
341355- Update Index:
342356
343- ` client.updateIndex(uid): Promise<Index> `
357+ ` client.updateIndex(uid: string, options: IndexOptions ): Promise<Index> `
344358Or using the index object:
345359` index.update(data: IndexOptions): Promise<Index> `
346360
0 commit comments