-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
34 lines (32 loc) · 909 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
declare module 'csdnCrawler' {
interface csdnCrawlerOptions {
username: string,
page: number,
size: number,
link: string,
businessType: string,
sleepTime: object, // Unit is: ms
supportImageType: string,
imagePrefixName: string,
contentNodeIdentify: string,
qiniu: {
zone: string,
scope: string, // Your qiniu scope name. Storage name.
useHttpsDomain: boolean,
useCdnDomain: boolean,
baseQiNiuCdnApi: string,
remoteFilePath: string,
isNeedWaterMark: boolean,
imageStyleSplitQuote: string,
imageStyleName: string,
accessKey: string, // Qiniu cloud accessKey
secretKey: string, // Qiniu secretKey
imageBaseAlt: string // image base alt message prefix
}
}
function csdnCrawler(
options?: Partial<csdnCrawlerOptions>,
callback?: Function
): string
export default csdnCrawler
}