@types/react-props-decorators
TypeScript icon, indicating that this package has built-in type declarations

0.1.37 • Public • Published

Installation

npm install --save @types/react-props-decorators

Summary

This package contains type definitions for react-props-decorators (https://github.com/popkirby/react-props-decorators).

Details

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 };

Additional Details

Credits

These definitions were written by Qubo.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-props-decorators

Weekly Downloads

5

Version

0.1.37

License

MIT

Unpacked Size

3.54 kB

Total Files

5

Last publish

Collaborators

  • types