UNPKG

@imbricate/core

Version:

Imbricate Core, Notebook for Engineers

19 lines (18 loc) 668 B
/** * @author WMXPY * @namespace Property * @description Validate */ import { ImbricateDatabaseSchema } from "../database/schema"; import { ImbricatePropertyRecord } from "./map"; /** * Validate properties with schema * * @param properties properties to validate * @param schema database schema to validate * @param allowExtraProperties allow extra properties, optional with default false * * @returns a string error message if validation failed * null if validation passed */ export declare const validateImbricateProperties: (properties: ImbricatePropertyRecord, schema: ImbricateDatabaseSchema, allowExtraProperties?: boolean) => string | null;