🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

introspectable-proptypes

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

introspectable-proptypes

Hacky propTypes introspection wrapper

latest
Source
npmnpm
Version
15.6.2
Version published
Maintainers
1
Created
Source

Introspectable PropTypes

Hacky thin wrapper to add introspection to React prop-types

This is a very thin layer around the prop-types package, to add introspection support, by setting a field called introspection on all created propTypes. This only handles the prop-types package. If you are using other packages (like react-immutable-proptypes), those must also be replaced.

Usage

  • Add as dependency: yarn add introspectable-proptypes or npm install introspectable-proptypes
  • Import component: import PropTypes from "introspectable-proptypes";
  • Use as before.
  • Introspect: MyComponent.propTypes.introspection now contains a readable version of the propType.

FAQs

Package last updated on 24 Oct 2017

Did you know?

Socket

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.

Install

Related posts