chore(types): lint the api docs with typescript (#3577)

This commit is contained in:
Joel Einbinder
2018-11-21 14:49:08 -08:00
committed by Andrey Lushnikov
parent fb5b0800ec
commit a0cbaf39ab
17 changed files with 472 additions and 355 deletions

View File

@@ -48,8 +48,9 @@ async function run() {
const browser = await puppeteer.launch();
const page = await browser.newPage();
const checkPublicAPI = require('./check_public_api');
const jsSources = await Source.readdir(path.join(PROJECT_DIR, 'lib'), '.js');
const jsSources = await Source.readdir(path.join(PROJECT_DIR, 'lib'));
messages.push(...await checkPublicAPI(page, mdSources, jsSources));
await browser.close();
for (const source of mdSources) {