@vinejs/compiler
Version:
Low level compiler for VineJS validator
11 lines (10 loc) • 306 B
TypeScript
type FieldOptions = {
variableName: string;
isOptional: boolean;
allowNull: boolean;
};
/**
* Returns JS fragment to validate a field's value for existence.
*/
export declare function defineFieldExistenceValidations({ allowNull, isOptional, variableName, }: FieldOptions): string;
export {};