Skip to content

Commit 75decce

Browse files
committed
fix types
1 parent 9adc0e1 commit 75decce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cubejs-templates/src/PackageFetcher.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class PackageFetcher {
1616

1717
protected repoArchivePath: string;
1818

19-
public constructor(private repo: Repository) {
19+
public constructor(private readonly repo: Repository) {
2020
this.tmpFolderPath = path.resolve('.', 'node_modules', '.tmp');
2121

2222
this.init();
@@ -53,7 +53,7 @@ export class PackageFetcher {
5353
(await proxyFetch(url)).body.pipe(writer);
5454

5555
return new Promise((resolve, reject) => {
56-
writer.on('finish', resolve);
56+
writer.on('finish', resolve as () => void);
5757
writer.on('error', reject);
5858
});
5959
}

0 commit comments

Comments
 (0)