@@ -94,7 +94,7 @@ public struct MeiliSearch {
9494 */
9595 public func getIndexes(
9696 params: IndexesQuery ? = nil ,
97- _ completion: @escaping ( Result < Results < Index > , Swift . Error > ) -> Void ) {
97+ _ completion: @escaping ( Result < IndexesResults , Swift . Error > ) -> Void ) {
9898 Indexes . getAll ( config: self . config, params: params, completion)
9999 }
100100
@@ -198,8 +198,8 @@ public struct MeiliSearch {
198198 */
199199 public func getTasks(
200200 params: TasksQuery ? = nil ,
201- _ completion: @escaping ( Result < Results < Task > , Swift . Error > ) -> Void ) {
202- self . tasks. getAll ( params: params, completion)
201+ _ completion: @escaping ( Result < TasksResults , Swift . Error > ) -> Void ) {
202+ self . tasks. getTasks ( params: params, completion)
203203 }
204204
205205 // MARK: Keys
@@ -213,22 +213,22 @@ public struct MeiliSearch {
213213 */
214214 public func getKeys(
215215 params: KeysQuery ? = nil ,
216- _ completion: @escaping ( Result < Results < Key > , Swift . Error > ) -> Void ) {
216+ _ completion: @escaping ( Result < KeysResults , Swift . Error > ) -> Void ) {
217217 self . keys. getAll ( params: params, completion)
218218 }
219219
220220 /**
221221 Get one key's information using the key value.
222222
223- - parameter key : The key value.
223+ - parameter keyOrUid : The key value.
224224 - parameter completion: The completion closure used to notify when the server
225225 completes the query request, it returns a `Result` object that contains `Key` value.
226226 If the request was sucessful or `Error` if a failure occured.
227227 */
228228 public func getKey(
229- key : String ,
229+ keyOrUid : String ,
230230 _ completion: @escaping ( Result < Key , Swift . Error > ) -> Void ) {
231- self . keys. get ( key: key , completion)
231+ self . keys. get ( key: keyOrUid , completion)
232232 }
233233
234234 /**
0 commit comments