mirror of
https://github.com/iptv-org/database.git
synced 2025-05-09 19:20:01 -04:00
Replace require() with import
This commit is contained in:
parent
67cc28a408
commit
ea14a63978
16 changed files with 93 additions and 74 deletions
8
scripts/schemes/blocklist.ts
Normal file
8
scripts/schemes/blocklist.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import Joi from 'joi'
|
||||
|
||||
export default {
|
||||
channel: Joi.string()
|
||||
.regex(/^[A-Za-z0-9]+\.[a-z]{2}$/)
|
||||
.required(),
|
||||
ref: Joi.string().uri().required()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue