source: trip-planner-front/node_modules/ajv/dist/compile/validate/dataType.d.ts@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 892 bytes
Line 
1import type { ErrorObject, AnySchemaObject } from "../../types";
2import type { SchemaObjCxt } from "..";
3import { JSONType } from "../rules";
4import { Code, Name } from "../codegen";
5export declare enum DataType {
6 Correct = 0,
7 Wrong = 1
8}
9export declare function getSchemaTypes(schema: AnySchemaObject): JSONType[];
10export declare function getJSONTypes(ts: unknown | unknown[]): JSONType[];
11export declare function coerceAndCheckDataType(it: SchemaObjCxt, types: JSONType[]): boolean;
12export declare function checkDataType(dataType: JSONType, data: Name, strictNums?: boolean | "log", correct?: DataType): Code;
13export declare function checkDataTypes(dataTypes: JSONType[], data: Name, strictNums?: boolean | "log", correct?: DataType): Code;
14export declare type TypeError = ErrorObject<"type", {
15 type: string;
16}>;
17export declare function reportTypeError(it: SchemaObjCxt): void;
Note: See TracBrowser for help on using the repository browser.