| 2 | import { errorCheck, getFetchPrefix } from './utils.js'; |
| 3 | |
| 4 | export interface GetCommentCountOptions extends BaseAPIOptions { |
| 5 | /** |
| 6 | * 待获取评论数的 path |
| 7 | * |
| 8 | * Path of pages to be fetched |
| 9 | */ |
| 10 | paths: string[]; |
| 11 | |
| 12 | /** |
| 13 | * 取消请求的信号 |
| 14 | * |
| 15 | * AbortSignal to cancel request |
| 16 | */ |
| 17 | signal?: AbortSignal; |
| 18 | } |
| 19 | |
| 20 | export const fetchCommentCount = ({ |
| 21 | serverURL, |
nothing calls this directly
no outgoing calls
no test coverage detected