Skip to content

Commit 3604d11

Browse files
committed
doc: update readme.md
1 parent 5b97334 commit 3604d11

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type Options = {
5656
// password: 'your picacomic account password'
5757
// })
5858
// }
59-
reauthorizationTokenCallback?: (self: PicaComicAPI) => string | Promise<string>
59+
reauthorizationTokenCallback?: (self: PicaComicAPI) => string | undefined | Promise<string | undefined>
6060
}
6161
```
6262

@@ -261,12 +261,12 @@ PicaComicAPI.prototype.fetchComicEpisodePages(payload: { token: string, comicId:
261261
* Stringify the given media image data into image url.
262262
*
263263
* @param payload - {
264-
* fileServer - File server
265264
* path - Path name
265+
* fileServer - File server (Optional)
266266
* }
267267
* @return Stringify image url
268268
*/
269-
PicaComicAPI.prototype.stringifyImageUrl(payload: { fileServer: string, path: string }): string
269+
PicaComicAPI.prototype.stringifyImageUrl(payload: { path: string, fileServer?: string }): string
270270
```
271271

272272
### .fetchImage
@@ -276,12 +276,12 @@ PicaComicAPI.prototype.stringifyImageUrl(payload: { fileServer: string, path: st
276276
* Fetch image from the given media image data.
277277
*
278278
* @param payload - {
279-
* fileServer - File server
280279
* path - Path name
280+
* fileServer - File server (Optional)
281281
* }
282282
* @return Duplex (Got stream)
283283
*/
284-
PicaComicAPI.prototype.fetchImage(payload: { fileServer: string, path: string }): Promise<Duplex>
284+
PicaComicAPI.prototype.fetchImage(payload: { path: string, fileServer?: string }): Promise<Duplex>
285285
```
286286

287287
### .search

0 commit comments

Comments
 (0)