UNPKG

@middy/validator

Version:

Validator middleware for the middy framework

23 lines (18 loc) 547 B
// Copyright 2017 - 2026 will Farrell, Luciano Mammino, and Middy contributors. // SPDX-License-Identifier: MIT import type { Ajv, ErrorObject, Options as AjvOptions } from "ajv"; export type LocalizeFunction = ( errors: ErrorObject[] | null | undefined, ) => void; export function transpileSchema( schema: object, ajvOptions?: Partial<AjvOptions>, ): Ajv; export function transpileLocale( src: string, options?: object | any, ): LocalizeFunction; export function transpileFTL( src: string, options?: object | any, ): LocalizeFunction;