Types on src/share
This commit is contained in:
parent
2b8c37e57f
commit
0cffb09e24
11 changed files with 88 additions and 54 deletions
|
@ -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('/')) {
|
||||
|
|
Reference in a new issue