Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
fix(capcha): type typo
Browse files Browse the repository at this point in the history
  • Loading branch information
beetcb committed May 23, 2021
1 parent a35759c commit 5d55980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crawler/capcha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function downloadTessdata() {
)
}

async function download(url: string, filename: string): string {
async function download(url: string, filename: string): Promise<string> {
const stream = fs.createWriteStream(filename)
const res = await fetch(url)
const result = await new Promise((resolve, reject) => {
Expand Down

0 comments on commit 5d55980

Please sign in to comment.