@types/react-props-decorators
Version:
TypeScript definitions for react-props-decorators
31 lines (22 loc) • 1.12 kB
Markdown
# 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.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-props-decorators/index.d.ts)
````ts
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
* Last updated: Wed, 10 Apr 2024 09:08:16 GMT
* Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types)
# Credits
These definitions were written by [Qubo](https://github.com/tkqubo).