
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
@types/react-material-ui-form-validator
Advanced tools
TypeScript definitions for react-material-ui-form-validator
npm install --save @types/react-material-ui-form-validator
This package contains type definitions for react-material-ui-form-validator (https://github.com/NewOldMax/react-material-ui-form-validator).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-material-ui-form-validator.
import { SelectFieldProps, TextFieldProps } from "material-ui";
import * as React from "react";
export interface ValidatorFormProps {
className?: string | undefined;
onSubmit: (event: React.FormEvent) => void;
instantValidate?: boolean | undefined;
onError?: ((errors: any[]) => void) | undefined;
debounceTime?: number | undefined;
[key: string]: any;
}
export class ValidatorForm extends React.Component<ValidatorFormProps> {
static addValidationRule(name: string, callback: (value: any) => boolean | Promise<boolean>): void;
static removeValidationRule(name: string): void;
isFormValid(dryRun: boolean): Promise<boolean>;
resetValidations(): void;
}
export interface ValidatorComponentProps {
errorMessages?: any[] | string | undefined;
validators?: any[] | undefined;
name: string;
value: any;
validatorListener?: ((isValid: boolean) => void) | undefined;
withRequiredValidator?: boolean | undefined;
[key: string]: any;
}
export class ValidatorComponent extends React.Component<ValidatorComponentProps> {
getErrorMessage(): string | boolean;
isValid(): boolean;
makeInvalid(): void;
makeValid(): void;
validate(value: string, includeRequired?: boolean, dryRun?: boolean): void;
}
export class TextValidator extends React.Component<ValidatorComponentProps & TextFieldProps> {
getErrorMessage(): string | boolean;
isValid(): boolean;
makeInvalid(): void;
makeValid(): void;
validate(value: string, includeRequired?: boolean, dryRun?: boolean): void;
}
export class SelectValidator extends React.Component<ValidatorComponentProps & SelectFieldProps> {
getErrorMessage(): string | boolean;
isValid(): boolean;
makeInvalid(): void;
makeValid(): void;
validate(value: string, includeRequired?: boolean, dryRun?: boolean): void;
}
These definitions were written by Frank Brullo, Ivan Siacho, and J.R.
FAQs
TypeScript definitions for react-material-ui-form-validator
The npm package @types/react-material-ui-form-validator receives a total of 2,893 weekly downloads. As such, @types/react-material-ui-form-validator popularity was classified as popular.
We found that @types/react-material-ui-form-validator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.