UNPKG

simple-body-validator

Version:

This package is inspired by Laravel validation, and aims to make body validation easier for Javascript developers

25 lines (24 loc) 722 B
declare class replaceAttributePayload { /** * Stores the data object */ data: object; /** * The message in which attributes will be replaced */ message: string; /** * Parameters that will be used to replace the attributes */ parameters: string[]; /** * Flag that identifies wether the numeric rule exists or not */ hasNumericRule: boolean; /** * The function that will be used to format attributes */ getDisplayableAttribute: Function; constructor(data: object, message: string, parameters: string[], hasNumericRule: boolean, getDisplayableAttribute: Function); } export default replaceAttributePayload;