Skip to content

Commit 909717d

Browse files
bors[bot]mdubus
andauthored
Merge #940
940: Fix prototypes in documentation r=bidoubiwa a=mdubus Co-authored-by: Morgane Dubus <[email protected]> Co-authored-by: Morgane Dubus <[email protected]>
2 parents 7de2cc1 + 0f42743 commit 909717d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ If you want to know more about the development workflow or want to contribute, p
328328

329329
- Get an index:
330330

331-
`client.getIndex<T>(uid: string): Index<T>`
331+
`client.getIndex<T>(uid: string): Promise<Index<T>>`
332332

333333
- Get or create index if it does not exist
334334

@@ -340,7 +340,7 @@ If you want to know more about the development workflow or want to contribute, p
340340

341341
- Update Index:
342342

343-
`client.updateIndex(uid): Promise<Index>`
343+
`client.updateIndex(uid: string, options: IndexOptions): Promise<Index>`
344344
Or using the index object:
345345
`index.update(data: IndexOptions): Promise<Index>`
346346

0 commit comments

Comments
 (0)