From 87684ea816b0ac61f487b41857ed6cf005f5c497 Mon Sep 17 00:00:00 2001 From: lgou2w Date: Fri, 8 Oct 2021 15:20:30 +0800 Subject: [PATCH] chore: typo semicolon --- README.md | 4 ++-- src/api.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0c55a20..3c5f337 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,7 @@ PicaComicAPI.prototype.fetchComicEpisodePages(payload: { token: string, comicId: * } * @return Stringify image url */ -PicaComicAPI.prototype.stringifyImageUrl(payload: { fileServer: string; path: string }): string +PicaComicAPI.prototype.stringifyImageUrl(payload: { fileServer: string, path: string }): string ``` ### .fetchImage @@ -177,7 +177,7 @@ PicaComicAPI.prototype.stringifyImageUrl(payload: { fileServer: string; path: st * } * @return Duplex (Got stream) */ -PicaComicAPI.prototype.fetchImage(payload: { fileServer: string; path: string }): Promise +PicaComicAPI.prototype.fetchImage(payload: { fileServer: string, path: string }): Promise ``` ## License diff --git a/src/api.ts b/src/api.ts index b69fbe9..fa63ae3 100644 --- a/src/api.ts +++ b/src/api.ts @@ -203,7 +203,7 @@ export class PicaComicAPI { .then(res => res.data) } - stringifyImageUrl (image: { fileServer: string; path: string }): string { + stringifyImageUrl (image: { fileServer: string, path: string }): string { const { path, fileServer } = image const url = new URL( `${fileServer.replace(/\/$/, '')}/static/${path.replace(/^\//, '')}`