Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
18 lines
884 B
Plaintext
18 lines
884 B
Plaintext
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;
|