
Research
/Security News
Intercom’s npm Package Compromised in Ongoing Mini Shai-Hulud Worm Attack
Compromised intercom-client@7.0.4 npm package is tied to the ongoing Mini Shai-Hulud worm attack targeting developer and CI/CD secrets.
@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 3,745 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 not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Research
/Security News
Compromised intercom-client@7.0.4 npm package is tied to the ongoing Mini Shai-Hulud worm attack targeting developer and CI/CD secrets.

Research
Socket detected a malicious supply chain attack on PyPI package lightning versions 2.6.2 and 2.6.3, which execute credential-stealing malware on import.

Research
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.