Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.217.80
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
ajv /
lib /
vocabularies /
jtd /
Delete
Unzip
Name
Size
Permission
Date
Action
discriminator.ts
2.59
KB
-rw-r--r--
2023-12-16 08:36
elements.ts
976
B
-rw-r--r--
2023-12-16 08:36
enum.ts
1.59
KB
-rw-r--r--
2023-12-16 08:36
error.ts
746
B
-rw-r--r--
2023-12-16 08:36
index.ts
1007
B
-rw-r--r--
2023-12-16 08:36
metadata.ts
716
B
-rw-r--r--
2023-12-16 08:36
nullable.ts
649
B
-rw-r--r--
2023-12-16 08:36
optionalProperties.ts
394
B
-rw-r--r--
2023-12-16 08:36
properties.ts
6.1
KB
-rw-r--r--
2023-12-16 08:36
ref.ts
2.29
KB
-rw-r--r--
2023-12-16 08:36
type.ts
2.49
KB
-rw-r--r--
2023-12-16 08:36
union.ts
292
B
-rw-r--r--
2023-12-16 08:36
values.ts
1.64
KB
-rw-r--r--
2023-12-16 08:36
Save
Rename
import type {KeywordErrorDefinition, KeywordErrorCxt, ErrorObject} from "../../types" import {_, Code} from "../../compile/codegen" export type _JTDTypeError<K extends string, T extends string, S> = ErrorObject< K, {type: T; nullable: boolean}, S > export function typeError(t: string): KeywordErrorDefinition { return { message: (cxt) => typeErrorMessage(cxt, t), params: (cxt) => typeErrorParams(cxt, t), } } export function typeErrorMessage({parentSchema}: KeywordErrorCxt, t: string): string { return parentSchema?.nullable ? `must be ${t} or null` : `must be ${t}` } export function typeErrorParams({parentSchema}: KeywordErrorCxt, t: string): Code { return _`{type: ${t}, nullable: ${!!parentSchema?.nullable}}` }