1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Fix ts issues

This commit is contained in:
Laurent Cozic 2023-09-13 19:19:31 +01:00
parent 1fd11588db
commit 97b0f4c8de
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,5 @@
import { rootDir } from './tool-utils';
const request = require('request'); const request = require('request');
interface Contributor { interface Contributor {
@ -6,7 +8,9 @@ interface Contributor {
html_url: string; html_url: string;
} }
const readmePath = `${__dirname}/../../README.md`; rootDir;
const readmePath = `${rootDir}/README.md`;
const { insertContentIntoFile } = require('./tool-utils.js'); const { insertContentIntoFile } = require('./tool-utils.js');
async function gitHubContributors(page: number): Promise<Contributor[]> { async function gitHubContributors(page: number): Promise<Contributor[]> {

View File

@ -17,6 +17,7 @@ describe('update-readme-download', () => {
html_url: '', html_url: '',
prerelease: false, prerelease: false,
draft: false, draft: false,
body: '',
}; };
return r; return r;
}; };