npm install --save @types/react-props-decorators
This package contains type definitions for react-props-decorators (https://github.com/popkirby/react-props-decorators).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-props-decorators.
import type * as PropTypes from "prop-types";
export interface ClassDecorator {
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
<TFunction extends Function>(target: TFunction): TFunction | void;
}
declare var propTypes: (map: PropTypes.ValidationMap<any>) => ClassDecorator;
declare var defaultProps: (defaultProps: any) => ClassDecorator;
export { defaultProps, propTypes };
- Last updated: Wed, 10 Apr 2024 09:08:16 GMT
- Dependencies: @types/prop-types
These definitions were written by Qubo.