文件操作 - dataType.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@redocly/ajv/dist/compile/validate/dataType.d.ts
编辑文件内容
import type { ErrorObject, AnySchemaObject } from "../../types"; import type { SchemaObjCxt } from ".."; import { JSONType } from "../rules"; import { Code, Name } from "../codegen"; export declare enum DataType { Correct = 0, Wrong = 1 } export declare function getSchemaTypes(schema: AnySchemaObject): JSONType[]; export declare function getJSONTypes(ts: unknown | unknown[]): JSONType[]; export declare function coerceAndCheckDataType(it: SchemaObjCxt, types: JSONType[]): boolean; export declare function checkDataType(dataType: JSONType, data: Name, strictNums?: boolean | "log", correct?: DataType): Code; export declare function checkDataTypes(dataTypes: JSONType[], data: Name, strictNums?: boolean | "log", correct?: DataType): Code; export type TypeError = ErrorObject<"type", { type: string; }>; export declare function reportTypeError(it: SchemaObjCxt): void;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件