UNPKG

@360works/fmpromise

Version:

A modern JS toolkit for FileMaker Web Viewers, including a dev server and type generation.

12 lines (11 loc) 461 B
import { ConfigSchema } from './types'; /** * Validates a configuration object against a schema. * @param config The pre-evaluated config object from window.FMPROMISE_CONFIG. * @param schema The module's defined schema. * @returns An object indicating if the config is valid and a list of any errors. */ export declare function validateConfig(config: Record<string, any> | undefined, schema: ConfigSchema): { isValid: boolean; errors: string[]; };