Skip to content

Commit

Permalink
Allows to specify only request type in query (#722)
Browse files Browse the repository at this point in the history
Allows to specify only the request type without the result
```
await sdk.query<ApiDeviceLinkAssetRequest>({ ... });
```
  • Loading branch information
Aschen authored Feb 21, 2023
1 parent 21dcac8 commit 2033928
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kuzzle-sdk",
"version": "7.10.5",
"version": "7.10.6",
"description": "Official Javascript SDK for Kuzzle",
"author": "The Kuzzle Team <[email protected]>",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/Kuzzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ export class Kuzzle extends KuzzleEventEmitter {
* @param req
* @param opts - Optional arguments
*/
query<TRequest extends BaseRequest, TResult>(
query<TRequest extends BaseRequest = BaseRequest, TResult = JSONObject>(
req: TRequest,
opts: JSONObject = {}
): Promise<ResponsePayload<TResult>> {
Expand Down

0 comments on commit 2033928

Please sign in to comment.