forked from MapComplete/MapComplete
Refactoring: split 'Utils' into multiple files; fix some stray uppercase-method names
This commit is contained in:
parent
81be4db044
commit
3ec89826e4
97 changed files with 884 additions and 921 deletions
|
@ -7,6 +7,7 @@ import Validators from "../src/UI/InputElement/Validators"
|
|||
import { AllKnownLayouts } from "../src/Customizations/AllKnownLayouts"
|
||||
import { AllSharedLayers } from "../src/Customizations/AllSharedLayers"
|
||||
import Constants from "../src/Models/Constants"
|
||||
import { Lists } from "../src/Utils/Lists"
|
||||
|
||||
const metainfo = {
|
||||
type: "One of the inputValidator types",
|
||||
|
@ -371,7 +372,7 @@ function extractMeta(
|
|||
const fullPath = "./src/assets/schemas/" + path + ".json"
|
||||
writeFileSync(fullPath, JSON.stringify(paths, null, " "))
|
||||
console.log("Written meta to " + fullPath)
|
||||
return Utils.NoNull(paths.map((p) => validateMeta(p)))
|
||||
return Lists.noNull(paths.map((p) => validateMeta(p)))
|
||||
}
|
||||
|
||||
function main() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue