Socket
Book a DemoInstallSign in
Socket

@rdil/prop-types-shim

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rdil/prop-types-shim

Runtime type checking for React props and similar objects.

15.8.1
latest
Source
npmnpm
Version published
Weekly downloads
651
110%
Maintainers
0
Weekly downloads
 
Created
Source

@rdil/prop-types-shim

What is this monstrosity?

This is a version of the prop-types package that has almost everything commented out.

You are hopefully asking "why??!" at this point. The answer is simple.

For codebases mid-transition to TypeScript, or codebases switching to a new build tool that doesn't support prop-types removal.

This package allows you to set a resolution for prop-types, so you don't have to change any of your existing code, but also don't have to deal with the pesky warnings.

No prop type checking, no (or, I guess, fewer) problems!

Tests

Most of the tests have been deleted. But the remaining ones do ensure that it works as a shim.

License

(@rdil/)prop-types(-shim) is MIT licensed.

Keywords

react

FAQs

Package last updated on 27 Nov 2024

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.