Types on src/share

This commit is contained in:
Shin'ya Ueoka 2019-04-30 21:50:46 +09:00
parent 2b8c37e57f
commit 0cffb09e24
11 changed files with 88 additions and 54 deletions

View file

@ -1,6 +1,6 @@
import * as re from 'shared/utils/re';
import * as re from './utils/re';
const includes = (blacklist, url) => {
const includes = (blacklist: string[], url: string): boolean => {
let u = new URL(url);
return blacklist.some((item) => {
if (!item.includes('/')) {