mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Fix type conflict
This commit is contained in:
parent
d17c7b4e8c
commit
c7cdac4409
6 changed files with 24 additions and 24 deletions
|
@ -2,7 +2,7 @@ import { exists, isArray, isSafePath } from './misc'
|
|||
import validator from 'validator'
|
||||
import { PluginType } from '../../../shared/models/plugins/plugin.type'
|
||||
import { CONSTRAINTS_FIELDS } from '../../initializers/constants'
|
||||
import { PluginPackageJson } from '../../../shared/models/plugins/plugin-package-json.model'
|
||||
import { PluginPackageJSON } from '../../../shared/models/plugins/plugin-package-json.model'
|
||||
import { isUrlValid } from './activitypub/misc'
|
||||
|
||||
const PLUGINS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.PLUGINS
|
||||
|
@ -84,7 +84,7 @@ function isThemeNameValid (name: string) {
|
|||
return isPluginNameValid(name)
|
||||
}
|
||||
|
||||
function isPackageJSONValid (packageJSON: PluginPackageJson, pluginType: PluginType) {
|
||||
function isPackageJSONValid (packageJSON: PluginPackageJSON, pluginType: PluginType) {
|
||||
let result = true
|
||||
const badFields: string[] = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue