Skip to content

Commit 16bc89f

Browse files
author
Julien Salinas
committed
Update types in order to take empty responses into account.
1 parent 8d68a07 commit 16bc89f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ If you are making asynchronous requests, you will always receive a quick respons
163163
client.asyncResult('https://api.nlpcloud.io/v1/get-async-result/21718218-42e8-4be9-a67f-b7e18e03b436')
164164
```
165165
166+
The above returns an object is the response is available. It returns an empty response otherwise (`null`).
167+
166168
### Automatic Speech Recognition (Speech to Text) Endpoint
167169
168170
Call the `asr()` method and pass the following arguments:

dist/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ declare class Client {
5757
error_detail: string;
5858
content: string;
5959
};
60-
}>;
60+
} | null >;
6161

6262
chatbot(params: {
6363
input: string,

0 commit comments

Comments
 (0)