chore: add typescript definitions for custom types (#486)

This commit is contained in:
Andrew Mackrodt
2020-10-10 17:06:38 +01:00
committed by GitHub
parent 5c61333df0
commit 0cdf6657bf
8 changed files with 168 additions and 11 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ import {tryLookupAndLoop} from './store';
puppeteer.use(stealthPlugin());
if (config.browser.lowBandwidth) {
puppeteer.use(resourceBlock({
blockedTypes: new Set(['image', 'font'])
blockedTypes: new Set(['image', 'font'] as const)
}));
} else {
puppeteer.use(adBlocker);